pub struct BatchNormalizationNodeBuilder { /* private fields */ }Implementations§
Source§impl BatchNormalizationNodeBuilder
impl BatchNormalizationNodeBuilder
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 config(self, config: BatchNormConfig) -> Self
pub fn config(self, config: BatchNormConfig) -> Self
Set the configuration
Sourcepub fn build(self) -> BatchNormalizationNode
pub fn build(self) -> BatchNormalizationNode
Build the node
Auto Trait Implementations§
impl Freeze for BatchNormalizationNodeBuilder
impl RefUnwindSafe for BatchNormalizationNodeBuilder
impl Send for BatchNormalizationNodeBuilder
impl Sync for BatchNormalizationNodeBuilder
impl Unpin for BatchNormalizationNodeBuilder
impl UnsafeUnpin for BatchNormalizationNodeBuilder
impl UnwindSafe for BatchNormalizationNodeBuilder
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