pub struct WhileContextDef {
pub context_name: String,
pub parallel_iterations: i32,
pub back_prop: bool,
pub swap_memory: bool,
pub pivot_name: String,
pub pivot_for_pred_name: String,
pub pivot_for_body_name: String,
pub loop_exit_names: Vec<String>,
pub loop_enter_names: Vec<String>,
pub values_def: Option<ValuesDef>,
pub maximum_iterations_name: String,
pub nested_contexts: Vec<ControlFlowContextDef>,
}
Expand description
Protocol buffer representing a WhileContext object.
Fields§
§context_name: String
Name of the context.
parallel_iterations: i32
The number of iterations allowed to run in parallel.
back_prop: bool
Whether backprop is enabled for this while loop.
swap_memory: bool
Whether GPU-CPU memory swap is enabled for this loop.
pivot_name: String
Name of the pivot tensor.
pivot_for_pred_name: String
Name of the pivot_for_pred tensor.
pivot_for_body_name: String
Name of the pivot_for_body tensor.
loop_exit_names: Vec<String>
List of names for exit tensors.
loop_enter_names: Vec<String>
List of names for enter tensors.
values_def: Option<ValuesDef>
Values and external values in control flow context.
maximum_iterations_name: String
Optional name of the maximum_iterations tensor.
nested_contexts: Vec<ControlFlowContextDef>
Contexts contained inside this context (e.g. nested whiles).
Trait Implementations§
Source§impl Clone for WhileContextDef
impl Clone for WhileContextDef
Source§fn clone(&self) -> WhileContextDef
fn clone(&self) -> WhileContextDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WhileContextDef
impl Debug for WhileContextDef
Source§impl Default for WhileContextDef
impl Default for WhileContextDef
Source§impl Message for WhileContextDef
impl Message for WhileContextDef
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
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>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for WhileContextDef
impl PartialEq for WhileContextDef
impl StructuralPartialEq for WhileContextDef
Auto Trait Implementations§
impl Freeze for WhileContextDef
impl RefUnwindSafe for WhileContextDef
impl Send for WhileContextDef
impl Sync for WhileContextDef
impl Unpin for WhileContextDef
impl UnwindSafe for WhileContextDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more