MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / __call__

Method __call__

python/oneflow/nn/graph/cache.py:112–115  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

110 self._enable_shared = enabled
111
112 def __call__(self, *args, **kwargs):
113 graph = self.get_graph(*args, **kwargs)
114 with AvoidRecursiveCacheCall(graph):
115 return graph(*args, **kwargs)
116
117 def _compile(self, *args, **kwargs):
118 graph = self.get_graph(*args, **kwargs)

Callers

nothing calls this directly

Calls 2

get_graphMethod · 0.95

Tested by

no test coverage detected