MCPcopy Create free account
hub / github.com/TorchSSL/TorchSSL / wrapper

Method wrapper

custom_writer.py:155–159  ·  view source on GitHub ↗
(tag, data, *args, **kwargs)

Source from the content-addressed store, hash-verified

153 func = getattr(self, name, None)
154 # Return a wrapper for all functions.
155 def wrapper(tag, data, *args, **kwargs):
156 if func is not None:
157 if name not in self.tag_mode_exceptions:
158 tag = f"{tag}/{self.mode}"
159 func(tag, data, *args, global_step=self.step, **kwargs)
160
161 return wrapper
162 else:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected