MCPcopy Create free account
hub / github.com/NVIDIA/FastPhotoStyle / __enter__

Method __enter__

process_stylization.py:33–34  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 self.start_time = None
32
33 def __enter__(self):
34 self.start_time = time.time()
35
36 def __exit__(self, exc_type, exc_value, exc_tb):
37 print(self.msg % (time.time() - self.start_time))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected