jdb78 / pytorch-forecasting

Time series forecasting with PyTorch
https://pytorch-forecasting.readthedocs.io/
MIT License
3.87k stars 611 forks source link

how self.log method is defined? #767

Open liaoyuhua opened 2 years ago

liaoyuhua commented 2 years ago

Expected behavior

Actual behavior

Hi, I am searching where class method self.log() is defined, but I failed. Could you please give me some hint or advise?

This method can be found LINE 503 in https://github.com/jdb78/pytorch-forecasting/blob/master/pytorch_forecasting/models/base_model.py

Thanks a lot!

Code to reproduce the problem

Paste the command(s) you ran and the output. Including a link to a colab notebook will speed up issue resolution. If there was a crash, please include the traceback here. The code used to initialize the TimeSeriesDataSet and model should be also included.

ozanozyegen commented 2 years ago

It is defined in the base class, LightningModule. See pytorch_lightning.LightningModule