-
Notifications
You must be signed in to change notification settings - Fork 104
Open
Description
Hello, I am new to pytorch and this scene in general, but when I run the code I get an error;torch.sum() Use tensor.detach().numpy() instead.
I am not familiar with how to detach or couldnt find an example of detaching each tensor on the list.
Is the following equivalent code?
:
for elem in layer_losses[1:]:
loss += elem
Metadata
Metadata
Assignees
Labels
No labels