pub struct TensorBuilder { /* private fields */ }Implementations§
Source§impl TensorBuilder
impl TensorBuilder
pub fn with_shape(self, shape: impl AsRef<[i64]>) -> Self
pub fn with_typ(self, typ: ONNXTensorElementDataType) -> Self
pub fn with_memory_info(self, mem_info: MemoryInfo) -> Self
pub fn borrow(self, input: &impl TensorTrait) -> Result<Value<'_>>
pub fn alloc(self, alloc: &impl AllocatorTrait) -> Result<Value<'_>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TensorBuilder
impl RefUnwindSafe for TensorBuilder
impl !Send for TensorBuilder
impl !Sync for TensorBuilder
impl Unpin for TensorBuilder
impl UnwindSafe for TensorBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more