pub enum TensorObservationData {
F32(Vec<f32>),
I64(Vec<i64>),
U64(Vec<u64>),
Bool(Vec<bool>),
}Expand description
Materialized row-major tensor values.
Backends may normalize native storage such as F16 or BF16 to F32 when crossing the observation boundary. This type describes the host values, not checkpoint storage.
Variants§
F32(Vec<f32>)
IEEE F32 values.
I64(Vec<i64>)
Signed 64-bit values.
U64(Vec<u64>)
Unsigned 64-bit values.
Bool(Vec<bool>)
Boolean values.
Implementations§
Trait Implementations§
Source§impl Clone for TensorObservationData
impl Clone for TensorObservationData
Source§fn clone(&self) -> TensorObservationData
fn clone(&self) -> TensorObservationData
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 TensorObservationData
impl Debug for TensorObservationData
Source§impl<'de> Deserialize<'de> for TensorObservationData
impl<'de> Deserialize<'de> for TensorObservationData
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 TensorObservationData
impl PartialEq for TensorObservationData
Source§impl Serialize for TensorObservationData
impl Serialize for TensorObservationData
impl StructuralPartialEq for TensorObservationData
Auto Trait Implementations§
impl Freeze for TensorObservationData
impl RefUnwindSafe for TensorObservationData
impl Send for TensorObservationData
impl Sync for TensorObservationData
impl Unpin for TensorObservationData
impl UnsafeUnpin for TensorObservationData
impl UnwindSafe for TensorObservationData
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