#[repr(i32)]pub enum DataLocation {
Default = 0,
External = 1,
}
Expand description
Location of the data for this tensor. MUST be one of:
- DEFAULT - data stored inside the protobuf message. Data is stored in raw_data (if set) otherwise in type-specified field.
- EXTERNAL - data stored in an external location as described by external_data field.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for DataLocation
impl Clone for DataLocation
Source§fn clone(&self) -> DataLocation
fn clone(&self) -> DataLocation
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 DataLocation
impl Debug for DataLocation
Source§impl Default for DataLocation
impl Default for DataLocation
Source§fn default() -> DataLocation
fn default() -> DataLocation
Returns the “default value” for a type. Read more
Source§impl From<DataLocation> for i32
impl From<DataLocation> for i32
Source§fn from(value: DataLocation) -> i32
fn from(value: DataLocation) -> i32
Converts to this type from the input type.
Source§impl Hash for DataLocation
impl Hash for DataLocation
Source§impl Ord for DataLocation
impl Ord for DataLocation
Source§fn cmp(&self, other: &DataLocation) -> Ordering
fn cmp(&self, other: &DataLocation) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DataLocation
impl PartialEq for DataLocation
Source§impl PartialOrd for DataLocation
impl PartialOrd for DataLocation
impl Copy for DataLocation
impl Eq for DataLocation
impl StructuralPartialEq for DataLocation
Auto Trait Implementations§
impl Freeze for DataLocation
impl RefUnwindSafe for DataLocation
impl Send for DataLocation
impl Sync for DataLocation
impl Unpin for DataLocation
impl UnwindSafe for DataLocation
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