pub struct OpMetadata {
pub op_type: String,
pub op_name: String,
pub source_file: String,
pub source_line: i32,
}Expand description
Symbolization metadata for HLO Instructions.
This metadata is used for debugging XLA code generation, as well as performance profiling of XLA-generated executables.
Fields§
§op_type: StringThe framework op name that generated this XLA op.
Frameworks that build on top of XLA should mirror the names of their ops back to users by specifying the op_type. In this way, even if the framework’s “ops” are implemented as multiple XLA HLO Ops, they can be grouped appropriately. (e.g. if a SoftMax layer is emitted into XLA as multiple ops, then each op should have the op_type be “SoftMax”.)
op_name: StringThe user-specified name of the op.
This name is often unique within a computation. Note: some frameworks add auto-generated names if the user does not provide one.
source_file: StringIndicate a file and line that this op is associated to in a user’s program.
e.g. it could be the file and line of user code that generated the op.
source_line: i32Trait Implementations§
Source§impl Clone for OpMetadata
impl Clone for OpMetadata
Source§fn clone(&self) -> OpMetadata
fn clone(&self) -> OpMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OpMetadata
impl Debug for OpMetadata
Source§impl Default for OpMetadata
impl Default for OpMetadata
Source§impl Message for OpMetadata
impl Message for OpMetadata
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.