You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print("converting {} in {} model ...".format("nn.Conv2d"ifnotconvert_fcelse"nn.Conv2d and nn.Linear", model_name))
A good mechanism for these kind of message is using the logging module, which can be turned on and off quite easily.
Other print statements found:
$ git grep -n 'print('pytorch2timeloop/converter_pytorch.py:28: print("converting {} in {} model ...".format("all", model_name))pytorch2timeloop/converter_pytorch.py:52: print("converting {} in {} model ...".format("nn.Conv2d" if not convert_fc else "nn.Conv2d and nn.Linear", model_name))pytorch2timeloop/converter_pytorch.py:113: print("conversion complete!\n")pytorch2timeloop/utils/hooks.py:228: print("unknown module type", module.__class__)
The text was updated successfully, but these errors were encountered:
For code that is using
pytorch2timeloop-converter
it is sometimes undesirable to have text printed in stdout.This package prints messages like
on around four places, e.g.
pytorch2timeloop-converter/pytorch2timeloop/converter_pytorch.py
Line 52 in 1e36aa5
A good mechanism for these kind of message is using the logging module, which can be turned on and off quite easily.
Other print statements found:
The text was updated successfully, but these errors were encountered: