modulus-sym icon indicating copy to clipboard operation
modulus-sym copied to clipboard

:bug: [BUG]: Incorrect get_num_losses return value when using custom loss function

Open zinccat opened this issue 1 year ago • 1 comments

The implementation of get_num_losses in domain.py is summing up the number of output names in constraints. Yet this is not the case when using custom loss function, e.g. when using variational constraint like the case in https://docs.nvidia.com/deeplearning/modulus/modulus-sym/user_guide/intermediate/variational_example.html

zinccat avatar Jun 05 '23 13:06 zinccat