pub struct TensorDecl {
pub id: TensorId,
pub name: String,
pub role: TensorRole,
pub elems: ElemShape,
pub tiles: TileGrid,
pub dtype: Precision,
pub layout: Layout,
pub space: TensorSpace,
pub init: TensorInit,
pub range: Option<(i64, i64)>,
pub chip: Option<ChipId>,
}Fields§
§id: TensorId§name: String§role: TensorRole§elems: ElemShape§tiles: TileGrid§dtype: Precision§layout: Layout§space: TensorSpace§init: TensorInit§range: Option<(i64, i64)>Declared value range (inclusive), when known — feeds the numerics claim.
chip: Option<ChipId>Which RDU holds this tensor, once a shard has split it. None on every unsharded program, and on
the replicated tensors (activations, norms) of a sharded one.
Implementations§
Trait Implementations§
Source§impl Clone for TensorDecl
impl Clone for TensorDecl
Source§fn clone(&self) -> TensorDecl
fn clone(&self) -> TensorDecl
Returns a duplicate of the value. Read more
1.0.0 · 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 TensorDecl
impl Debug for TensorDecl
Source§impl<'de> Deserialize<'de> for TensorDecl
impl<'de> Deserialize<'de> for TensorDecl
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
Source§impl PartialEq for TensorDecl
impl PartialEq for TensorDecl
Source§impl Serialize for TensorDecl
impl Serialize for TensorDecl
impl Eq for TensorDecl
impl StructuralPartialEq for TensorDecl
Auto Trait Implementations§
impl Freeze for TensorDecl
impl RefUnwindSafe for TensorDecl
impl Send for TensorDecl
impl Sync for TensorDecl
impl Unpin for TensorDecl
impl UnsafeUnpin for TensorDecl
impl UnwindSafe for TensorDecl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.