remigenet / TKAT

Temporal Kolmogorov-Arnold Transformer
Other
64 stars 11 forks source link

UserWarning: Gradients do not exist for variables ['sub_tkan_kernel'] when minimizing the loss #8

Open mw66 opened 1 month ago

mw66 commented 1 month ago

with KERAS_BACKEND=torch

/lib/python3.11/site-packages/keras/src/optimizers/base_optimizer.py:678: UserWarning: Gradients do not exist for variables ['sub_tkan_kernel'] when minimizing the loss. If using model.compile(), did you forget to provide a loss argument?

remigenet commented 4 weeks ago

It may be linked to https://github.com/remigenet/TKAT/issues/9#issuecomment-2413096820, could you look if the change solve the issue or otherwise give me setup and reproductible example ?