[][src]Struct tensorflow_proto::tensorflow::BundleEntryProto

pub struct BundleEntryProto {
    pub dtype: i32,
    pub shape: Option<TensorShapeProto>,
    pub shard_id: i32,
    pub offset: i64,
    pub size: i64,
    pub crc32c: u32,
    pub slices: Vec<TensorSliceProto>,
}

Describes the metadata related to a checkpointed tensor.

Fields

dtype: i32

The tensor dtype and shape.

shape: Option<TensorShapeProto>shard_id: i32

The binary content of the tensor lies in: File "shard_id": bytes [offset, offset + size).

offset: i64size: i64crc32c: u32

The CRC32C checksum of the tensor bytes.

slices: Vec<TensorSliceProto>

Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows:

"dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".

Implementations

impl BundleEntryProto[src]

pub fn dtype(&self) -> DataType[src]

Returns the enum value of dtype, or the default if the field is set to an invalid enum value.

pub fn set_dtype(&mut self, value: DataType)[src]

Sets dtype to the provided enum value.

Trait Implementations

impl Clone for BundleEntryProto[src]

impl Debug for BundleEntryProto[src]

impl Default for BundleEntryProto[src]

impl Message for BundleEntryProto[src]

impl PartialEq<BundleEntryProto> for BundleEntryProto[src]

impl StructuralPartialEq for BundleEntryProto[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.