[][src]Struct tensorflow_proto::xla::hlo_input_output_alias_proto::AliasEntryProto

pub struct AliasEntryProto {
    pub output_shape_index: Vec<i64>,
    pub parameter_number: i64,
    pub parameter_shape_index: Vec<i64>,
    pub kind: i32,
}

The following proto describes a pair of aliased an input (described by parameter number and a ShapeIndex of the parameter) and an output (described by a ShapeIndex of the root instruction). For example:

entry = { output_shape_index={1}, parameter_number=0, parameter_shape_index={1, 2}, }

This entry indicates that the first paremter's {1, 2} element is aliased with the {1} element of the root instruction.

Fields

output_shape_index: Vec<i64>

ShapeIndex of the root hlo.

parameter_number: i64

Number of the parameter in entry computation.

parameter_shape_index: Vec<i64>

ShapeIndex of the parameter instruction.

kind: i32

The kind of alias to be setup.

Implementations

impl AliasEntryProto[src]

pub fn kind(&self) -> Kind[src]

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

pub fn set_kind(&mut self, value: Kind)[src]

Sets kind to the provided enum value.

Trait Implementations

impl Clone for AliasEntryProto[src]

impl Debug for AliasEntryProto[src]

impl Default for AliasEntryProto[src]

impl Message for AliasEntryProto[src]

impl PartialEq<AliasEntryProto> for AliasEntryProto[src]

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