MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / __exit__

Method __exit__

utils/__init__.py:234–237  ·  view source on GitHub ↗
(self, exc_type, exc_val, exc_tb)

Source from the content-addressed store, hash-verified

232 self.t = time.time()
233
234 def __exit__(self, exc_type, exc_val, exc_tb):
235 Timer.timer_map[self.name] += time.time() - self.t
236 if self.print_time:
237 print(self.name, Timer.timer_map[self.name])
238
239
240def print_arch(model, model_name='model'):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected