pub struct TensorBinding {
pub handle: Handle<GlobalVariable>,
pub name: String,
pub elem_type: i32,
pub role: TensorRole,
}Expand description
A storage buffer bound as a tensor.
Fields§
§handle: Handle<GlobalVariable>Handle to the underlying global variable.
name: StringHuman-readable tensor name.
elem_type: i32ONNX element data type (see data_type).
role: TensorRoleWhether this tensor is an input or output.
Trait Implementations§
Source§impl Clone for TensorBinding
impl Clone for TensorBinding
Source§fn clone(&self) -> TensorBinding
fn clone(&self) -> TensorBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TensorBinding
impl Debug for TensorBinding
Auto Trait Implementations§
impl Freeze for TensorBinding
impl RefUnwindSafe for TensorBinding
impl Send for TensorBinding
impl Sync for TensorBinding
impl Unpin for TensorBinding
impl UnsafeUnpin for TensorBinding
impl UnwindSafe for TensorBinding
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