[][src]Struct tensorflow_serving_client::meta_graph::TensorInfo

pub struct TensorInfo {
    pub dtype: DataType,
    pub tensor_shape: SingularPtrField<TensorShapeProto>,
    pub encoding: Option<TensorInfo_oneof_encoding>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

dtype: DataTypetensor_shape: SingularPtrField<TensorShapeProto>encoding: Option<TensorInfo_oneof_encoding>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl TensorInfo[src]

pub fn new() -> TensorInfo[src]

pub fn get_name(&self) -> &str[src]

pub fn clear_name(&mut self)[src]

pub fn has_name(&self) -> bool[src]

pub fn set_name(&mut self, v: String)[src]

pub fn mut_name(&mut self) -> &mut String[src]

pub fn take_name(&mut self) -> String[src]

pub fn get_coo_sparse(&self) -> &TensorInfo_CooSparse[src]

pub fn clear_coo_sparse(&mut self)[src]

pub fn has_coo_sparse(&self) -> bool[src]

pub fn set_coo_sparse(&mut self, v: TensorInfo_CooSparse)[src]

pub fn mut_coo_sparse(&mut self) -> &mut TensorInfo_CooSparse[src]

pub fn take_coo_sparse(&mut self) -> TensorInfo_CooSparse[src]

pub fn get_composite_tensor(&self) -> &TensorInfo_CompositeTensor[src]

pub fn clear_composite_tensor(&mut self)[src]

pub fn has_composite_tensor(&self) -> bool[src]

pub fn set_composite_tensor(&mut self, v: TensorInfo_CompositeTensor)[src]

pub fn mut_composite_tensor(&mut self) -> &mut TensorInfo_CompositeTensor[src]

pub fn take_composite_tensor(&mut self) -> TensorInfo_CompositeTensor[src]

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

pub fn clear_dtype(&mut self)[src]

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

pub fn get_tensor_shape(&self) -> &TensorShapeProto[src]

pub fn clear_tensor_shape(&mut self)[src]

pub fn has_tensor_shape(&self) -> bool[src]

pub fn set_tensor_shape(&mut self, v: TensorShapeProto)[src]

pub fn mut_tensor_shape(&mut self) -> &mut TensorShapeProto[src]

pub fn take_tensor_shape(&mut self) -> TensorShapeProto[src]

Trait Implementations

impl Clear for TensorInfo[src]

impl Clone for TensorInfo[src]

impl Debug for TensorInfo[src]

impl Default for TensorInfo[src]

impl<'a> Default for &'a TensorInfo[src]

impl Message for TensorInfo[src]

impl PartialEq<TensorInfo> for TensorInfo[src]

impl ProtobufValue for TensorInfo[src]

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