[][src]Struct tensorflow_proto::xla::LiteralProto

pub struct LiteralProto {
    pub shape: Option<ShapeProto>,
    pub preds: Vec<bool>,
    pub s8s: Vec<u8>,
    pub u8s: Vec<u8>,
    pub s32s: Vec<i32>,
    pub s64s: Vec<i64>,
    pub u32s: Vec<u32>,
    pub u64s: Vec<u64>,
    pub f32s: Vec<f32>,
    pub f64s: Vec<f64>,
    pub c64s: Vec<f32>,
    pub c128s: Vec<f64>,
    pub tuple_literals: Vec<LiteralProto>,
    pub f16s: Vec<u8>,
    pub bf16s: Vec<u8>,
    pub u16s: Vec<u8>,
    pub s16s: Vec<u8>,
    pub sparse_indices: Vec<i64>,
}

Literals are used when the server and client need to exchange materialized data / results. Literals are also used to describe constants used in computations.

Transfers to/from the client are encoded in literal form, and the structure of the repeated fields is implied by the shape.

Fields

shape: Option<ShapeProto>preds: Vec<bool>s8s: Vec<u8>u8s: Vec<u8>s32s: Vec<i32>s64s: Vec<i64>u32s: Vec<u32>u64s: Vec<u64>f32s: Vec<f32>f64s: Vec<f64>c64s: Vec<f32>

Stored as interleaved real, imag floats.

c128s: Vec<f64>

Stored as interleaved real, imag doubles.

tuple_literals: Vec<LiteralProto>f16s: Vec<u8>

The F16s, BF16s, U16s and S16s are encoded in little endian byte order

bf16s: Vec<u8>u16s: Vec<u8>s16s: Vec<u8>sparse_indices: Vec<i64>

Next = 19

Trait Implementations

impl Clone for LiteralProto[src]

impl Debug for LiteralProto[src]

impl Default for LiteralProto[src]

impl Message for LiteralProto[src]

impl PartialEq<LiteralProto> for LiteralProto[src]

impl StructuralPartialEq for LiteralProto[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.