Type VariableScope
Namespace tensorflow
Parent PythonObjectContainer
Interfaces IVariableScope
Variable scope object to carry defaults to provide to `get_variable`. Many of the arguments we need for `get_variable` in a variable store are most
easily handled with a context. This object is used for the defaults.
Methods
- get_collection
- get_collection_dyn
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable
- get_variable_dyn
- global_variables
- global_variables_dyn
- local_variables
- local_variables_dyn
- NewDyn
- reuse_variables
- reuse_variables_dyn
- set_caching_device_
- set_caching_device_
- set_caching_device__dyn
- set_custom_getter_
- set_custom_getter__dyn
- set_dtype_
- set_dtype__dyn
- set_initializer_
- set_initializer_
- set_initializer__dyn
- set_partitioner_
- set_partitioner_
- set_partitioner__dyn
- set_regularizer_
- set_regularizer__dyn
- set_use_resource_
- set_use_resource__dyn
- trainable_variables
- trainable_variables_dyn
Properties
- caching_device
- caching_device_dyn
- constraint
- constraint_dyn
- custom_getter
- custom_getter_dyn
- dtype
- dtype_dyn
- initializer
- initializer_dyn
- name
- name_dyn
- original_name_scope
- original_name_scope_dyn
- partitioner
- partitioner_dyn
- PythonObject
- regularizer
- regularizer_dyn
- reuse
- reuse_dyn
- use_resource
- use_resource_dyn
Public instance methods
IList<object> get_collection(string name)
Get this scope's variables.
object get_collection_dyn(object name)
Get this scope's variables.
object get_variable(_VariableStore var_store, int name, IEnumerable<object> shape, PythonClassContainer dtype, PythonFunctionContainer initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, string name, IEnumerable<object> shape, dtype dtype, PythonFunctionContainer initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, int name, int shape, PythonClassContainer dtype, object initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, int name, int shape, PythonClassContainer dtype, PythonFunctionContainer initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, int name, int shape, DType dtype, object initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, int name, int shape, DType dtype, PythonFunctionContainer initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, int name, IEnumerable<object> shape, DType dtype, PythonFunctionContainer initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, int name, IEnumerable<object> shape, DType dtype, object initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, int name, int shape, dtype dtype, PythonFunctionContainer initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, int name, TensorShape shape, PythonClassContainer dtype, object initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, int name, TensorShape shape, PythonClassContainer dtype, PythonFunctionContainer initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, string name, int shape, PythonClassContainer dtype, object initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, int name, TensorShape shape, DType dtype, PythonFunctionContainer initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, int name, IEnumerable<object> shape, PythonClassContainer dtype, object initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, int name, TensorShape shape, DType dtype, object initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, int name, int shape, dtype dtype, object initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, string name, IEnumerable<object> shape, dtype dtype, object initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, int name, IEnumerable<object> shape, dtype dtype, PythonFunctionContainer initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, int name, TensorShape shape, dtype dtype, PythonFunctionContainer initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, string name, int shape, PythonClassContainer dtype, PythonFunctionContainer initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, string name, int shape, DType dtype, object initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, string name, int shape, DType dtype, PythonFunctionContainer initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, string name, int shape, dtype dtype, object initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, string name, int shape, dtype dtype, PythonFunctionContainer initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, string name, TensorShape shape, PythonClassContainer dtype, object initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, string name, TensorShape shape, PythonClassContainer dtype, PythonFunctionContainer initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, string name, TensorShape shape, DType dtype, object initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, string name, TensorShape shape, DType dtype, PythonFunctionContainer initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, string name, TensorShape shape, dtype dtype, object initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, string name, TensorShape shape, dtype dtype, PythonFunctionContainer initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, string name, IEnumerable<object> shape, PythonClassContainer dtype, object initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, string name, IEnumerable<object> shape, PythonClassContainer dtype, PythonFunctionContainer initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, string name, IEnumerable<object> shape, DType dtype, object initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, string name, IEnumerable<object> shape, DType dtype, PythonFunctionContainer initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, int name, IEnumerable<object> shape, dtype dtype, object initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable(_VariableStore var_store, int name, TensorShape shape, dtype dtype, object initializer, object regularizer, object reuse, Nullable<bool> trainable, object collections, object caching_device, PythonFunctionContainer partitioner, bool validate_shape, Nullable<bool> use_resource, Nullable<int> custom_getter, object constraint, VariableSynchronization synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object get_variable_dyn(object var_store, object name, object shape, object dtype, object initializer, object regularizer, object reuse, object trainable, object collections, object caching_device, object partitioner, ImplicitContainer<T> validate_shape, object use_resource, object custom_getter, object constraint, ImplicitContainer<T> synchronization, ImplicitContainer<T> aggregation)
Gets an existing variable with this name or create a new one.
object global_variables()
Get this scope's global variables.
object global_variables_dyn()
Get this scope's global variables.
object local_variables()
Get this scope's local variables.
object local_variables_dyn()
Get this scope's local variables.
void reuse_variables()
Reuse variables in this scope.
object reuse_variables_dyn()
Reuse variables in this scope.
void set_caching_device_(PythonFunctionContainer caching_device)
void set_caching_device_(object caching_device)
object set_caching_device__dyn(object caching_device)
void set_custom_getter_(object custom_getter)
object set_custom_getter__dyn(object custom_getter)
void set_dtype_(DType dtype)
object set_dtype__dyn(object dtype)
void set_initializer_(random_uniform_initializer initializer)
void set_initializer_(Initializer initializer)
object set_initializer__dyn(object initializer)
void set_partitioner_(object partitioner)
void set_partitioner_(PythonFunctionContainer partitioner)
object set_partitioner__dyn(object partitioner)
void set_regularizer_(object regularizer)
object set_regularizer__dyn(object regularizer)
void set_use_resource_(Nullable<bool> use_resource)
object set_use_resource__dyn(object use_resource)
object trainable_variables()
Get this scope's trainable variables.
object trainable_variables_dyn()
Get this scope's trainable variables.
Public static methods
VariableScope NewDyn(object reuse, ImplicitContainer<T> name, object initializer, object regularizer, object caching_device, object partitioner, object custom_getter, ImplicitContainer<T> name_scope, ImplicitContainer<T> dtype, object use_resource, object constraint)
Creates a new VariableScope with the given properties.