pub struct NdTensorBlock {
pub tensor_id: String,
pub representation_id: RepresentationId,
pub container: String,
pub dtype: NdTensorDType,
pub shape: Vec<usize>,
pub observation_ids: Vec<ObservationId>,
pub sample_ids: Vec<SampleId>,
pub data: Vec<u8>,
pub row_presence: Option<Vec<bool>>,
}Expand description
A relation-ordered, axis-0-filtered export of a stored tensor. shape[0] is
the number of selected rows; data is contiguous row-major bytes.
Fields§
§tensor_id: String§representation_id: RepresentationId§container: String§dtype: NdTensorDType§shape: Vec<usize>§observation_ids: Vec<ObservationId>§sample_ids: Vec<SampleId>§data: Vec<u8>§row_presence: Option<Vec<bool>>Trait Implementations§
Source§impl Clone for NdTensorBlock
impl Clone for NdTensorBlock
Source§fn clone(&self) -> NdTensorBlock
fn clone(&self) -> NdTensorBlock
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 NdTensorBlock
impl Debug for NdTensorBlock
Source§impl<'de> Deserialize<'de> for NdTensorBlock
impl<'de> Deserialize<'de> for NdTensorBlock
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NdTensorBlock, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NdTensorBlock, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NdTensorBlock
impl PartialEq for NdTensorBlock
Source§fn eq(&self, other: &NdTensorBlock) -> bool
fn eq(&self, other: &NdTensorBlock) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NdTensorBlock
impl Serialize for NdTensorBlock
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for NdTensorBlock
Auto Trait Implementations§
impl Freeze for NdTensorBlock
impl RefUnwindSafe for NdTensorBlock
impl Send for NdTensorBlock
impl Sync for NdTensorBlock
impl Unpin for NdTensorBlock
impl UnsafeUnpin for NdTensorBlock
impl UnwindSafe for NdTensorBlock
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