hi,
i created a loss function, and it returns a float
i get the error ‘float’ object has no attribute ‘backward’
which is makes sense…
if i return tensor(some_float)
i get the error:
element 0 of tensors does not require grad and does not have a grad_fn
how can i handle it?