MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / get_variable

Function get_variable

tensorflow/python/ops/variable_scope.py:1936–1967  ·  view source on GitHub ↗
(name,
                 shape=None,
                 dtype=None,
                 initializer=None,
                 regularizer=None,
                 trainable=None,
                 collections=None,
                 caching_device=None,
                 partitioner=None,
                 validate_shape=True,
                 use_resource=None,
                 custom_getter=None,
                 constraint=None,
                 synchronization=VariableSynchronization.AUTO,
                 aggregation=VariableAggregation.NONE)

Source from the content-addressed store, hash-verified

1934# get_local_variable below.
1935@tf_export(v1=["get_variable"])
1936def get_variable(name,
1937 shape=None,
1938 dtype=None,
1939 initializer=None,
1940 regularizer=None,
1941 trainable=None,
1942 collections=None,
1943 caching_device=None,
1944 partitioner=None,
1945 validate_shape=True,
1946 use_resource=None,
1947 custom_getter=None,
1948 constraint=None,
1949 synchronization=VariableSynchronization.AUTO,
1950 aggregation=VariableAggregation.NONE):
1951 return get_variable_scope().get_variable(
1952 _get_default_variable_store(),
1953 name,
1954 shape=shape,
1955 dtype=dtype,
1956 initializer=initializer,
1957 regularizer=regularizer,
1958 trainable=trainable,
1959 collections=collections,
1960 caching_device=caching_device,
1961 partitioner=partitioner,
1962 validate_shape=validate_shape,
1963 use_resource=use_resource,
1964 custom_getter=custom_getter,
1965 constraint=constraint,
1966 synchronization=synchronization,
1967 aggregation=aggregation)
1968
1969
1970get_variable_or_local_docstring = ("""%s

Callers 2

get_local_variableFunction · 0.85
testGetHashTableMethod · 0.85

Calls 3

get_variable_scopeFunction · 0.85
get_variableMethod · 0.45

Tested by 1

testGetHashTableMethod · 0.68