[−][src]Struct tensorflow_proto::xla::HloInstructionProto
Serialization of HloInstruction. Next ID: 68
Fields
name: String
opcode: String
shape: Option<ShapeProto>
metadata: Option<OpMetadata>
literal: Option<LiteralProto>
Literal, only present for kConstant.
parameter_number: i64
Parameter number is only present for kParameter.
fusion_kind: String
Fusion state, only present for kFusion.
tuple_index: i64
Index for kGetTupleElement.
dimensions: Vec<i64>
Dimensions present for some operations that require reshaping or broadcasting, including Reshape, Reduce, ReduceWindow, and Reverse.
window: Option<Window>
Describes the window in a windowed operation such as convolution.
convolution_dimension_numbers: Option<ConvolutionDimensionNumbers>
Describes the dimension numbers used for a convolution.
feature_group_count: i64
The number of feature groups. Used for a convolution. Must be a divisor of the input feature dimension and output feature dimension. If not specified, it will use a default value of 1.
batch_group_count: i64
slice_dimensions: Vec<SliceDimensions>
exponent_bits: i32
The bit sizes for a reduce-precision operation.
mantissa_bits: i32
dynamic_slice_sizes: Vec<i64>
Describes the [start, start + size) range size for a dynamic slice ('start' is specified dynamically in the second operand of the operation).
padding_config: Option<PaddingConfig>
The padding configuration that describes the edge padding and interior padding of this pad instruction. Only set for pad instructions.
outfeed_config: Vec<u8>
Outfeed configuration information, only present for kOutfeed.
distribution: i32
The distribution requested for random number generation. Only present for kRng.
epsilon: f32
A small float number added to the variance to avoid divide-by-zero error. Only present for kBatchNormTraining.
feature_index: i64
An integer value representing the index of the feature dimension. Only present for kBatchNormTraining.
channel_id: i64
Represents a unique identifier for each Send/Recv instruction pair or optionally for collective instructions (AllReduce, CollectivePermute, AllToAll). Non-positive channel_id is equivalent to no channel id.
infeed_config: Vec<u8>
The string representation of the infeed configuration.
custom_call_target: String
Name of a external target (eg, global symbol) to call, only present for kCustomCall.
outfeed_shape: Option<ShapeProto>
Shape of outfeed request.
dot_dimension_numbers: Option<DotDimensionNumbers>
Describes the dimension numbers used for a dot operation
fft_type: i32
FFT type (FFT, IFFT, etc).
fft_length: Vec<i64>
FFT length.
comparison_direction: String
Comparison direction only used for kCompare.
gather_dimension_numbers: Option<GatherDimensionNumbers>
Gather dimension numbers.
gather_slice_sizes: Vec<i64>
channel_name: String
Compute Host.
cost_estimate_ns: i64
id: i64
The id of this instruction.
operand_ids: Vec<i64>
control_predecessor_ids: Vec<i64>
called_computation_ids: Vec<i64>
sharding: Option<OpSharding>
backend_config: String
Backend configuration for the instruction. Has backend-specific meaning.
replica_groups: Vec<ReplicaGroup>
Cross replica op fields.
all_reduce_id: i64
Deprecated, but keeping it for backward compatibility. Use channel_id. Non-positive all_reduce_id is equivalent to no all_reduce_id.
is_host_transfer: bool
Whether this Send/Recv instruction transfers data to/from the host. Only present for Send and Recv instructions and their SendDone and RecvDone partners.
is_stable: bool
Whether this Sort instruction should be stable.
scatter_dimension_numbers: Option<ScatterDimensionNumbers>
precision_config: Option<PrecisionConfig>
Precision configuration for the instruction. Has backend-specific meaning.
source_target_pairs: Vec<SourceTarget>
Collective permute field.
domain_entry_sharding: Option<OpSharding>
Sharding for kDomain instructions.
domain_exit_sharding: Option<OpSharding>
constrain_layout: bool
For custom call this indicates that the layouts are constrained. If constrain_layout is true then the 'shape' field must contain a layout, and 'operand_shapes_with_layout' must contain a shape with layout for each operand.
operand_shapes_with_layout: Vec<ShapeProto>
triangular_solve_options: Option<TriangularSolveOptions>
Options for TriangularSolve
cholesky_options: Option<CholeskyOptions>
Options for Cholesky
parameter_replication: Option<ParameterReplication>
Describes how parameters behave with regards to replicas.
outer_dimension_partitions: Vec<i64>
If set, the given instruction is run in parallel on e.g. multiple CPU cores. The outermost dimension gets split up into outer_dimension_partitions[0] pieces, the next-outermost dim gets split into outer_dimension_partitions[1] pieces, etc.
It's illegal to partition a dimension into more shards than there are elements in that dimension.
custom_call_has_side_effect: bool
Whether the kCustomCall instruction has side-effects, only present for kCustomCall.
delta: i64
The delta value for kRngGetAndUpdateState.
indices_are_sorted: bool
Specifies if the gather/scatter indices are guaranteed to be sorted by the caller.
Implementations
impl HloInstructionProto
[src]
pub fn distribution(&self) -> RandomDistribution
[src]
Returns the enum value of distribution
, or the default if the field is set to an invalid enum value.
pub fn set_distribution(&mut self, value: RandomDistribution)
[src]
Sets distribution
to the provided enum value.
pub fn fft_type(&self) -> FftType
[src]
Returns the enum value of fft_type
, or the default if the field is set to an invalid enum value.
pub fn set_fft_type(&mut self, value: FftType)
[src]
Sets fft_type
to the provided enum value.
Trait Implementations
impl Clone for HloInstructionProto
[src]
pub fn clone(&self) -> HloInstructionProto
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for HloInstructionProto
[src]
impl Default for HloInstructionProto
[src]
impl Message for HloInstructionProto
[src]
pub fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
pub fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
[src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
pub fn encoded_len(&self) -> usize
[src]
pub fn clear(&mut self)
[src]
pub fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn decode<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
pub fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
impl PartialEq<HloInstructionProto> for HloInstructionProto
[src]
pub fn eq(&self, other: &HloInstructionProto) -> bool
[src]
pub fn ne(&self, other: &HloInstructionProto) -> bool
[src]
impl StructuralPartialEq for HloInstructionProto
[src]
Auto Trait Implementations
impl RefUnwindSafe for HloInstructionProto
[src]
impl Send for HloInstructionProto
[src]
impl Sync for HloInstructionProto
[src]
impl Unpin for HloInstructionProto
[src]
impl UnwindSafe for HloInstructionProto
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,