[][src]Struct tensorflow_proto::xla::HloReducePrecisionOptions

pub struct HloReducePrecisionOptions {
    pub location: i32,
    pub exponent_bits: u32,
    pub mantissa_bits: u32,
    pub opcodes_to_suffix: Vec<u32>,
    pub opname_substrings_to_suffix: Vec<String>,
}

Options for the HLO insert-reduce-precision-operations pass.

Fields

location: i32exponent_bits: u32

Exponent and mantissa bit counts for the reduced precision.

mantissa_bits: u32opcodes_to_suffix: Vec<u32>

Operations matching these opcodes should be suffixed with reduce-precision operations.

opname_substrings_to_suffix: Vec<String>

Operations with names containing these substrings should be suffixed with reduce-precision operations.

Implementations

impl HloReducePrecisionOptions[src]

pub fn location(&self) -> Location[src]

Returns the enum value of location, or the default if the field is set to an invalid enum value.

pub fn set_location(&mut self, value: Location)[src]

Sets location to the provided enum value.

Trait Implementations

impl Clone for HloReducePrecisionOptions[src]

impl Debug for HloReducePrecisionOptions[src]

impl Default for HloReducePrecisionOptions[src]

impl Message for HloReducePrecisionOptions[src]

impl PartialEq<HloReducePrecisionOptions> for HloReducePrecisionOptions[src]

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