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

Method __init__

tensorflow/python/ops/variable_scope.py:1325–1354  ·  view source on GitHub ↗

Creates a new VariableScope with the given properties.

(self,
               reuse,
               name="",
               initializer=None,
               regularizer=None,
               caching_device=None,
               partitioner=None,
               custom_getter=None,
               name_scope="",
               dtype=dtypes.float32,
               use_resource=None,
               constraint=None)

Source from the content-addressed store, hash-verified

1323 """
1324
1325 def __init__(self,
1326 reuse,
1327 name="",
1328 initializer=None,
1329 regularizer=None,
1330 caching_device=None,
1331 partitioner=None,
1332 custom_getter=None,
1333 name_scope="",
1334 dtype=dtypes.float32,
1335 use_resource=None,
1336 constraint=None):
1337 """Creates a new VariableScope with the given properties."""
1338 self._name = name
1339 self._initializer = initializer
1340 self._regularizer = regularizer
1341 self._reuse = reuse
1342 self._caching_device = caching_device
1343 self._partitioner = partitioner
1344 self._custom_getter = custom_getter
1345 self._name_scope = name_scope
1346 self._dtype = dtype
1347 self._use_resource = use_resource
1348 self._constraint = constraint
1349 if context.executing_eagerly():
1350 if self._caching_device is not None:
1351 raise NotImplementedError("Caching devices is not yet supported "
1352 "when eager execution is enabled.")
1353 self._reuse = AUTO_REUSE
1354 self._use_resource = True
1355
1356 @property
1357 def name(self):

Callers 1

__init__Method · 0.45

Calls 1

executing_eagerlyMethod · 0.80

Tested by

no test coverage detected