[−][src]Enum tensorflow_proto::tensorflow::rewriter_config::MemOptType
Variants
The default setting (SCHEDULING and SWAPPING HEURISTICS only)
Disabled in the meta-optimizer.
Driven by manual op-level annotations.
Swapping heuristic will move a tensor from the GPU to the CPU and move it back when needed to reduce peak memory usage.
Recomputation heuristics will recompute ops (such as Relu activation) during backprop instead of storing them, reducing peak memory usage.
Scheduling will split big ops such as AddN and try to enforce a schedule of the new computations that decreases peak memory usage.
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]
pub fn clone(&self) -> MemOptType
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MemOptType
[src]
impl Debug for MemOptType
[src]
impl Default for MemOptType
[src]
pub fn default() -> MemOptType
[src]
impl Eq for MemOptType
[src]
impl Hash for MemOptType
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for MemOptType
[src]
pub fn cmp(&self, other: &MemOptType) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<MemOptType> for MemOptType
[src]
pub fn eq(&self, other: &MemOptType) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<MemOptType> for MemOptType
[src]
pub fn partial_cmp(&self, other: &MemOptType) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for MemOptType
[src]
impl StructuralPartialEq for MemOptType
[src]
Auto Trait Implementations
impl RefUnwindSafe for MemOptType
[src]
impl Send for MemOptType
[src]
impl Sync for MemOptType
[src]
impl Unpin for MemOptType
[src]
impl UnwindSafe for MemOptType
[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>,