Hello everyone
I am using fmod or remainder to compute a sawtooth waveform, where the divisor argument ‘other’ is computed by some layers (in this case it is for defining the sawtooth frequency), thus it requires gradient.
When performing backpropagation it gives the following error for fmod or remainder:
RuntimeError: the derivative for ‘other’ is not implemented
Is there any workaround please ?
The input argument is a torch.arange(size) which is then shaped as a saw thanks to the modulo operation.
Thanks !