[−][src]Struct tract_tensorflow::tfpb::tensorflow::VariableDef
Protocol buffer representing a Variable.
Fields
variable_name: String
Name of the variable tensor.
initial_value_name: String
Name of the tensor holding the variable's initial value.
initializer_name: String
Name of the initializer op.
snapshot_name: String
Name of the snapshot tensor.
save_slice_info_def: Option<SaveSliceInfoDef>
Support for saving variables as slices of a larger variable.
is_resource: bool
Whether to represent this as a ResourceVariable.
trainable: bool
Whether this variable should be trained.
synchronization: i32
Indicates when a distributed variable will be synced.
aggregation: i32
Indicates how a distributed variable will be aggregated.
Methods
impl VariableDef
[src]
pub fn synchronization(&self) -> VariableSynchronization
[src]
Returns the enum value of synchronization
, or the default if the field is set to an invalid enum value.
pub fn set_synchronization(&mut self, value: VariableSynchronization)
[src]
Sets synchronization
to the provided enum value.
pub fn aggregation(&self) -> VariableAggregation
[src]
Returns the enum value of aggregation
, or the default if the field is set to an invalid enum value.
pub fn set_aggregation(&mut self, value: VariableAggregation)
[src]
Sets aggregation
to the provided enum value.
Trait Implementations
impl Clone for VariableDef
[src]
fn clone(&self) -> VariableDef
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for VariableDef
[src]
impl Default for VariableDef
[src]
fn default() -> VariableDef
[src]
impl Message for VariableDef
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
[src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
[src]
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
[src]
B: Buf,
Self: Default,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
impl PartialEq<VariableDef> for VariableDef
[src]
fn eq(&self, other: &VariableDef) -> bool
[src]
fn ne(&self, other: &VariableDef) -> bool
[src]
impl StructuralPartialEq for VariableDef
[src]
Auto Trait Implementations
impl RefUnwindSafe for VariableDef
impl Send for VariableDef
impl Sync for VariableDef
impl Unpin for VariableDef
impl UnwindSafe for VariableDef
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
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.
fn to_owned(&self) -> T
[src]
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.
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>,