MCPcopy Index your code
hub / github.com/pytorch/pytorch / wrapper

Method wrapper

caffe2/python/context.py:95–97  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

93 def __call__(self, func):
94 @functools.wraps(func)
95 def wrapper(*args, **kwargs):
96 with self:
97 return func(*args, **kwargs)
98 return wrapper
99
100

Callers

nothing calls this directly

Calls 1

funcFunction · 0.70

Tested by

no test coverage detected