[][src]Struct tensorflow_proto::xla::OpMetadata

pub struct OpMetadata {
    pub op_type: String,
    pub op_name: String,
    pub source_file: String,
    pub source_line: i32,
}

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: String

The 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: String

The 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: String

Indicate 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: i32

Trait Implementations

impl Clone for OpMetadata[src]

impl Debug for OpMetadata[src]

impl Default for OpMetadata[src]

impl Message for OpMetadata[src]

impl PartialEq<OpMetadata> for OpMetadata[src]

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