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

Method set_use_resource

tensorflow/python/ops/variable_scope.py:1412–1417  ·  view source on GitHub ↗

Sets whether to use ResourceVariables for this scope.

(self, use_resource)

Source from the content-addressed store, hash-verified

1410 self._dtype = dtype
1411
1412 def set_use_resource(self, use_resource):
1413 """Sets whether to use ResourceVariables for this scope."""
1414 if context.executing_eagerly() and not use_resource:
1415 raise ValueError("When eager execution is enabled, "
1416 "use_resource cannot be set to false.")
1417 self._use_resource = use_resource
1418
1419 def set_regularizer(self, regularizer):
1420 """Set regularizer for this scope."""

Calls 1

executing_eagerlyMethod · 0.80