Created
November 11, 2021 15:16
-
-
Save sizhky/bc5d3f2dfca5a61e22a9487b12869ace to your computer and use it in GitHub Desktop.
io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from torch_snippets import * | |
def io(func): | |
def inner(*args, **kwargs): | |
Info(f'\nargs: {args}\nkwargs: {kwargs}', depth=1) | |
o = func(*args, **kwargs) | |
Info(f'\noutput: {o}', depth=1) | |
return o | |
return inner |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment