AnnealingVariable¶
-
class
tfsnippet.AnnealingVariable(name, initial_value, ratio, min_value=None, dtype=tf.float32)¶ Bases:
tfsnippet.trainer.scheduled_var.ScheduledVariableA non-trainable
tf.Variable, whose value will be annealed as training goes by.Attributes Summary
tensorGet the wrapped tf.Tensor.variableGet the TensorFlow variable object. Methods Summary
anneal()Anneal the value. get()Get the current value of the variable. set(value)Set the value of the variable. Attributes Documentation
-
tensor¶ Get the wrapped
tf.Tensor. Derived classes must override this to return the actual wrapped tensor.Returns: The wrapped tensor. Return type: tf.Tensor
-
variable¶ Get the TensorFlow variable object.
Returns: The TensorFlow variable object. Return type: tf.Variable
Methods Documentation
-
anneal()¶ Anneal the value.
-
get()¶ Get the current value of the variable.
-
set(value)¶ Set the value of the variable.
Parameters: value – The value to be assigned to the variable.
-