[][src]Struct tensorflow_proto::tensorflow::tpu::TopologyProto

pub struct TopologyProto {
    pub mesh_shape: Vec<i32>,
    pub num_tasks: i32,
    pub num_tpu_devices_per_task: i32,
    pub device_coordinates: Vec<i32>,
}

Describes the geometry of a TPU mesh.

Fields

mesh_shape: Vec<i32>

The dimensions of the TPU topology, in cores. Typically, this is a 3D topology [x, y, core], where the major dimensions correspond to TPU chips, and the minor dimension describes the number of cores on a multicore chip.

num_tasks: i32

Number of TensorFlow tasks in the cluster.

num_tpu_devices_per_task: i32

Number of TPU devices per task.

device_coordinates: Vec<i32>

A flattened rank 3 int32 array with shape [num_tasks, num_tpu_devices_per_task, len(mesh_shape)]. tasks is the number of tasks in the TPU cluster, devices is the number of TPU devices per task, and the minor dimension corresponds to a position in the TPU mesh topology. Each entry [task, device, axis] gives the axis-th coordinate in the topology of a task/device pair.

Trait Implementations

impl Clone for TopologyProto[src]

impl Debug for TopologyProto[src]

impl Default for TopologyProto[src]

impl Message for TopologyProto[src]

impl PartialEq<TopologyProto> for TopologyProto[src]

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