MCPcopy Create free account
hub / github.com/AntixK/PyTorch-VAE / func_wrapper

Function func_wrapper

utils.py:15–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13 """
14
15 def func_wrapper(self):
16 try: # Works for version 0.6.0
17 return pl.data_loader(fn)(self)
18
19 except: # Works for version > 0.6.0
20 return fn(self)
21
22 return func_wrapper

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected