What strange is the right hand side of
likelihood_loss += some_function(fearure)
is something like tensor(-3.9759, grad_fn=<SubBackward0>)
When I add it to likelihood_loss  I get tensor([]) not  tensor(-3.9759, grad_fn=<SubBackward0>)