pub struct TensorContract {
pub id: StableId,
pub name: String,
pub role: TensorRole,
pub owner_function: StableId,
pub parameter: Option<StableId>,
pub shape: ShapeFact,
pub dtype: String,
pub device: DeviceFact,
pub layout: LayoutFact,
pub requires_grad: Option<bool>,
pub execution_phase: Option<ExecutionPhase>,
pub evidence: Vec<Evidence>,
}Fields§
§id: StableId§name: String§role: TensorRole§owner_function: StableId§parameter: Option<StableId>§shape: ShapeFact§dtype: String§device: DeviceFact§layout: LayoutFact§requires_grad: Option<bool>§execution_phase: Option<ExecutionPhase>Train vs inference graph this contract belongs to.
evidence: Vec<Evidence>Trait Implementations§
Source§impl Clone for TensorContract
impl Clone for TensorContract
Source§fn clone(&self) -> TensorContract
fn clone(&self) -> TensorContract
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 TensorContract
impl Debug for TensorContract
Source§impl<'de> Deserialize<'de> for TensorContract
impl<'de> Deserialize<'de> for TensorContract
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TensorContract
Source§impl PartialEq for TensorContract
impl PartialEq for TensorContract
Source§impl Serialize for TensorContract
impl Serialize for TensorContract
impl StructuralPartialEq for TensorContract
Auto Trait Implementations§
impl Freeze for TensorContract
impl RefUnwindSafe for TensorContract
impl Send for TensorContract
impl Sync for TensorContract
impl Unpin for TensorContract
impl UnsafeUnpin for TensorContract
impl UnwindSafe for TensorContract
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