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

Method scope

tensorflow/python/distribute/hvd_strategy.py:95–103  ·  view source on GitHub ↗

r'''Update params in context.

(cls, **kwargs)

Source from the content-addressed store, hash-verified

93 @classmethod
94 @contextlib.contextmanager
95 def scope(cls, **kwargs):
96 r'''Update params in context.
97 '''
98 prev_kwargs = {}
99 try:
100 c = cls.get()
101 yield c
102 finally:
103 del prev_kwargs
104
105 @classmethod
106 def get_tf_config(cls):

Calls 1

getMethod · 0.45