Construct Variable from a tf.Tensor.
If not explicitly named, the Variable will be given a name with the
prefix 'Variable'. Variable names are unique. In the case of name
collision, suffixies '_
Initial value of the Variable.
Optional dtype: keyof DataTypeMapOptional name: stringName of the variable. If null or undefined is provided, it
will default a name with the prefix 'Variable'.
Optional trainable: booleanOptional constraint: ConstraintOptional, projection function to be applied to the variable after optimize updates
ValueError if name is null or undefined.
Update the value of the Variable.
This Variable.
Generated using TypeDoc
A
tf.layers.LayerVariableis similar to atf.Tensorin that it has a dtype and shape, but its value is mutable. The value is itself represented as atf.Tensor, and can be read with theread()method and updated with thewrite()method.