[][src]Struct tensorflow_proto::tensorflow::tpu::tpu_embedding_output_layout::OutputLocation

pub struct OutputLocation {
    pub tensor_index: i32,
    pub dim0_offset: i32,
    pub dim1_offset: i32,
}

Location of one copy of the feature's data.

Fields

tensor_index: i32

Which output tensor this copy of the feature will go into. Must be between 0 and layout.output_size().

dim0_offset: i32

Offset in dimension 0 for this feature copy. Must be between 0 and layout.output(tensor_index).dim0_size_per_sample().

dim1_offset: i32

Offset in dimension 1 for this feature copy. Must be between 0 and layout.output(tensor_index).dim1_size() - table width; repeated or partially/fully overlapping values are allowed and results in the same range will be summed (with the gradients replicated in the backward pass).

Trait Implementations

impl Clone for OutputLocation[src]

impl Debug for OutputLocation[src]

impl Default for OutputLocation[src]

impl Message for OutputLocation[src]

impl PartialEq<OutputLocation> for OutputLocation[src]

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