Hi,
I need to implement a loss function which has a time-based parameter, i.e. a decay component which is based on the number of epochs. In optimization algorithms this is already implemented.
I can implement an extension of a loss function but i am not sure where and how i can pass it a parameter about the epochs?
Is it possible to implement it in pytorch? Could you just show a simple example?
Thank you!