You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The node_weights tensor is never passed as an argument to individual losses. The node_loss_weights resolves with hydra in a GraphNodeAttribute which does not translate anywhere into a tensor other than through the get_node_weights method from the GraphForecaster.
It means that the node_weights tensor is provided as a kwarg to the CombinedLoss init, which does not need it, but when hydra instantiates the individual losses, there is no tensor but only a GraphNodeAttribute object.
Reminder: the CombinedLoss is not tested.
What are the steps to reproduce the bug?
Write that in the training config (the documentation string is wrong, node_weights is not provided anywhere if you follow it).
Hi,
Thanks for pointing out that the CombinedLoss is currently broken, I see that tests were not properly developed for it,
I think the issue you are having with hydra should be solveable just by setting _recursive_ = False in either the code or the config. Rather then redefining the node_weights it should be passed to the children losses.
However, in my testing I have noticed other issues with the classes, and scalars.
What happened?
The node_weights tensor is never passed as an argument to individual losses. The node_loss_weights resolves with hydra in a GraphNodeAttribute which does not translate anywhere into a tensor other than through the get_node_weights method from the GraphForecaster.
It means that the node_weights tensor is provided as a kwarg to the CombinedLoss init, which does not need it, but when hydra instantiates the individual losses, there is no tensor but only a GraphNodeAttribute object.
Reminder: the CombinedLoss is not tested.
What are the steps to reproduce the bug?
Write that in the training config (the documentation string is wrong, node_weights is not provided anywhere if you follow it).
Version
latest develop
Platform (OS and architecture)
Linux balfrin-ln002 5.14.21-150400.24.81_12.0.87-cray_shasta_c
Relevant log output
No response
Accompanying data
MeteoSwiss
Organisation
MeteoSwiss
The text was updated successfully, but these errors were encountered: