[][src]Struct tensorflow_proto::tensorflow::contrib::proto::PackedTestValue

pub struct PackedTestValue {
    pub double_value: Vec<f64>,
    pub float_value: Vec<f32>,
    pub int64_value: Vec<i64>,
    pub uint64_value: Vec<u64>,
    pub int32_value: Vec<i32>,
    pub fixed64_value: Vec<u64>,
    pub fixed32_value: Vec<u32>,
    pub bool_value: Vec<bool>,
    pub string_value: Vec<String>,
    pub bytes_value: Vec<Vec<u8>>,
    pub uint32_value: Vec<u32>,
    pub sfixed32_value: Vec<i32>,
    pub sfixed64_value: Vec<i64>,
    pub sint32_value: Vec<i32>,
    pub sint64_value: Vec<i64>,
    pub message_value: Vec<PrimitiveValue>,
    pub double_value_with_default: Option<f64>,
    pub float_value_with_default: Option<f32>,
    pub int64_value_with_default: Option<i64>,
    pub uint64_value_with_default: Option<u64>,
    pub int32_value_with_default: Option<i32>,
    pub fixed64_value_with_default: Option<u64>,
    pub fixed32_value_with_default: Option<u32>,
    pub bool_value_with_default: Option<bool>,
    pub string_value_with_default: Option<String>,
    pub bytes_value_with_default: Option<Vec<u8>>,
    pub uint32_value_with_default: Option<u32>,
    pub sfixed32_value_with_default: Option<i32>,
    pub sfixed64_value_with_default: Option<i64>,
    pub sint32_value_with_default: Option<i32>,
    pub sint64_value_with_default: Option<i64>,
}

A PackedTestValue looks exactly the same as a TestValue in the text format, but the binary serializion is different. We test the packed representations by loading the same test cases using this definition instead of TestValue.

NOTE: This definition must be kept in sync with TestValue in every way except the packed=true declaration and the lack of extensions.

Fields

double_value: Vec<f64>float_value: Vec<f32>int64_value: Vec<i64>uint64_value: Vec<u64>int32_value: Vec<i32>fixed64_value: Vec<u64>fixed32_value: Vec<u32>bool_value: Vec<bool>string_value: Vec<String>bytes_value: Vec<Vec<u8>>uint32_value: Vec<u32>sfixed32_value: Vec<i32>sfixed64_value: Vec<i64>sint32_value: Vec<i32>sint64_value: Vec<i64>message_value: Vec<PrimitiveValue>double_value_with_default: Option<f64>float_value_with_default: Option<f32>int64_value_with_default: Option<i64>uint64_value_with_default: Option<u64>int32_value_with_default: Option<i32>fixed64_value_with_default: Option<u64>fixed32_value_with_default: Option<u32>bool_value_with_default: Option<bool>string_value_with_default: Option<String>bytes_value_with_default: Option<Vec<u8>>uint32_value_with_default: Option<u32>sfixed32_value_with_default: Option<i32>sfixed64_value_with_default: Option<i64>sint32_value_with_default: Option<i32>sint64_value_with_default: Option<i64>

Implementations

impl PackedTestValue[src]

pub fn double_value_with_default(&self) -> f64[src]

Returns the value of double_value_with_default, or the default value if double_value_with_default is unset.

pub fn float_value_with_default(&self) -> f32[src]

Returns the value of float_value_with_default, or the default value if float_value_with_default is unset.

pub fn int64_value_with_default(&self) -> i64[src]

Returns the value of int64_value_with_default, or the default value if int64_value_with_default is unset.

pub fn uint64_value_with_default(&self) -> u64[src]

Returns the value of uint64_value_with_default, or the default value if uint64_value_with_default is unset.

pub fn int32_value_with_default(&self) -> i32[src]

Returns the value of int32_value_with_default, or the default value if int32_value_with_default is unset.

pub fn fixed64_value_with_default(&self) -> u64[src]

Returns the value of fixed64_value_with_default, or the default value if fixed64_value_with_default is unset.

pub fn fixed32_value_with_default(&self) -> u32[src]

Returns the value of fixed32_value_with_default, or the default value if fixed32_value_with_default is unset.

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

Returns the value of bool_value_with_default, or the default value if bool_value_with_default is unset.

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

Returns the value of string_value_with_default, or the default value if string_value_with_default is unset.

pub fn bytes_value_with_default(&self) -> &[u8][src]

Returns the value of bytes_value_with_default, or the default value if bytes_value_with_default is unset.

pub fn uint32_value_with_default(&self) -> u32[src]

Returns the value of uint32_value_with_default, or the default value if uint32_value_with_default is unset.

pub fn sfixed32_value_with_default(&self) -> i32[src]

Returns the value of sfixed32_value_with_default, or the default value if sfixed32_value_with_default is unset.

pub fn sfixed64_value_with_default(&self) -> i64[src]

Returns the value of sfixed64_value_with_default, or the default value if sfixed64_value_with_default is unset.

pub fn sint32_value_with_default(&self) -> i32[src]

Returns the value of sint32_value_with_default, or the default value if sint32_value_with_default is unset.

pub fn sint64_value_with_default(&self) -> i64[src]

Returns the value of sint64_value_with_default, or the default value if sint64_value_with_default is unset.

Trait Implementations

impl Clone for PackedTestValue[src]

impl Debug for PackedTestValue[src]

impl Default for PackedTestValue[src]

impl Message for PackedTestValue[src]

impl PartialEq<PackedTestValue> for PackedTestValue[src]

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