[][src]Enum tensorflow_proto::tensorflow::rewriter_config::MemOptType

#[repr(i32)]pub enum MemOptType {
    DefaultMemOpt,
    NoMemOpt,
    Manual,
    SwappingHeuristics,
    RecomputationHeuristics,
    SchedulingHeuristics,
    Heuristics,
}

Variants

DefaultMemOpt

The default setting (SCHEDULING and SWAPPING HEURISTICS only)

NoMemOpt

Disabled in the meta-optimizer.

Manual

Driven by manual op-level annotations.

SwappingHeuristics

Swapping heuristic will move a tensor from the GPU to the CPU and move it back when needed to reduce peak memory usage.

RecomputationHeuristics

Recomputation heuristics will recompute ops (such as Relu activation) during backprop instead of storing them, reducing peak memory usage.

SchedulingHeuristics

Scheduling will split big ops such as AddN and try to enforce a schedule of the new computations that decreases peak memory usage.

Heuristics

Use any combination of swapping and recomputation heuristics.

Implementations

impl MemOptType[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of MemOptType.

pub fn from_i32(value: i32) -> Option<MemOptType>[src]

Converts an i32 to a MemOptType, or None if value is not a valid variant.

Trait Implementations

impl Clone for MemOptType[src]

impl Copy for MemOptType[src]

impl Debug for MemOptType[src]

impl Default for MemOptType[src]

impl Eq for MemOptType[src]

impl Hash for MemOptType[src]

impl Ord for MemOptType[src]

impl PartialEq<MemOptType> for MemOptType[src]

impl PartialOrd<MemOptType> for MemOptType[src]

impl StructuralEq for MemOptType[src]

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