[][src]Struct tensorflow_proto::xla::dynamic_parameter_binding_proto::Binding

pub struct Binding {
    pub dynamic_param_num: i64,
    pub dynamic_param_index: Vec<i64>,
    pub target_param_num: i64,
    pub target_param_index: Vec<i64>,
    pub target_param_dim_num: i64,
}

A list of bindings which indicates that the target_dim_num in the subshape target_param_index of parameter target_param_num is a dynamic dimension and its real dynamic size is represented by dynamic_param_index in parameter dynamic_param_num.

As an example, imagine we have a program:

ENTRY main { a = f32[] parameter(0) b = f32[10] parameter(1) ROOT root = (f32[], f32[10]) tuple(%a, %b) }

Let's say 'b' (param index 1) is a dynamic shape whose input has an upperbound of 10 and real size is determined at runtime.'a' represents the real size of b's first dimension.

In this case, the fields are set in the following way: dynamic_param_num = 1 dynamic_param_index = {} target_param_num = 0 target_param_index = {} target_param_dim = 0

Fields

dynamic_param_num: i64dynamic_param_index: Vec<i64>target_param_num: i64target_param_index: Vec<i64>target_param_dim_num: i64

Trait Implementations

impl Clone for Binding[src]

impl Debug for Binding[src]

impl Default for Binding[src]

impl Message for Binding[src]

impl PartialEq<Binding> for Binding[src]

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