pub struct MatMulIntegerNodeBuilder { /* private fields */ }Implementations§
Source§impl MatMulIntegerNodeBuilder
impl MatMulIntegerNodeBuilder
Sourcepub fn input_tensor(self, name: &str, rank: usize, dtype: DType) -> Self
pub fn input_tensor(self, name: &str, rank: usize, dtype: DType) -> Self
Add a tensor input (dynamic, no static shape)
Sourcepub fn input_tensor_shape(
self,
name: &str,
shape: Vec<usize>,
dtype: DType,
) -> Self
pub fn input_tensor_shape( self, name: &str, shape: Vec<usize>, dtype: DType, ) -> Self
Add a tensor input with fully-known static shape
Sourcepub fn input_static_tensor_shape(
self,
name: &str,
shape: Vec<usize>,
dtype: DType,
) -> Self
pub fn input_static_tensor_shape( self, name: &str, shape: Vec<usize>, dtype: DType, ) -> Self
Add a static tensor input with fully-known shape (not a forward parameter)
Sourcepub fn input_scalar(self, name: &str, dtype: DType) -> Self
pub fn input_scalar(self, name: &str, dtype: DType) -> Self
Add a scalar input (native Rust type, rank 0)
Sourcepub fn input_scalar_tensor(self, name: &str, dtype: DType) -> Self
pub fn input_scalar_tensor(self, name: &str, dtype: DType) -> Self
Add a scalar tensor input (1D tensor on device, rank 1)
Sourcepub fn input_shape(self, name: &str, rank: usize) -> Self
pub fn input_shape(self, name: &str, rank: usize) -> Self
Add a shape input with a specific rank (number of dimensions the shape describes)
For example, a 4D tensor shape [N, C, H, W] has rank 4.
Sourcepub fn output_tensor(self, name: &str, rank: usize, dtype: DType) -> Self
pub fn output_tensor(self, name: &str, rank: usize, dtype: DType) -> Self
Add an output tensor
Sourcepub fn output_scalar(self, name: &str, dtype: DType) -> Self
pub fn output_scalar(self, name: &str, dtype: DType) -> Self
Add a scalar output (native Rust type, rank 0)
Sourcepub fn output_scalar_tensor(self, name: &str, dtype: DType) -> Self
pub fn output_scalar_tensor(self, name: &str, dtype: DType) -> Self
Add a scalar tensor output (1D tensor on device, rank 1)
Sourcepub fn output_shape(self, name: &str, rank: usize) -> Self
pub fn output_shape(self, name: &str, rank: usize) -> Self
Add a shape output with a specific rank (number of dimensions the shape describes)
For example, a 4D tensor shape [N, C, H, W] has rank 4.
Sourcepub fn input_const_i64(self, name: &str, value: i64) -> Self
pub fn input_const_i64(self, name: &str, value: i64) -> Self
Add a constant i64 scalar input with a known value
Sourcepub fn build(self) -> MatMulIntegerNode
pub fn build(self) -> MatMulIntegerNode
Build the node
Auto Trait Implementations§
impl Freeze for MatMulIntegerNodeBuilder
impl RefUnwindSafe for MatMulIntegerNodeBuilder
impl Send for MatMulIntegerNodeBuilder
impl Sync for MatMulIntegerNodeBuilder
impl Unpin for MatMulIntegerNodeBuilder
impl UnsafeUnpin for MatMulIntegerNodeBuilder
impl UnwindSafe for MatMulIntegerNodeBuilder
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