Unanswered
Pytorch Lightning Question About Logging A Figure.
I Have The Following Code:
That's useful to know! But actually in this case I want to just test if the code works (run 2 epochs and see if it works). I don't want this to be logged, so I don't Task.init
in those cases.
I don't want the code to crash on Trains in those cases.
I see that Task.current_task()
returns None if no task is running, so I can use that with an if statement 🙂
164 Views
0
Answers
4 years ago
one year ago