I am new to PyTorch coding. I am writing algorithms in C++. I would like to log their progress using the logging infrastructure provided with PyTorch. There is code for logging in c10/util/Logging.h. The coding style looks like this:
The above code works, in that it compiles. And no printout is produced.
Details. The code I wrote is added as a module to a PyTorch python script. So the question is how does one manipulate the PyTorch logging infrastructure?
How do I turn on the log printout? How do I control where it goes?