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
# This returns only weight1
net$named_parameters(TRUE)
#> $weight1
#> torch_tensor
#> -2.2368
#> [ CPUFloatType{1,1} ][ requires_grad = TRUE ]
# This returns weight1 and weight2
net$named_parameters(FALSE)
This is a bug. We should only ever return unique tensors.
We could potentially make it an error to assign the same tensor to multiple names within a module to avoid having to handle this case.
This is a bug. We should only ever return unique tensors.
We could potentially make it an error to assign the same tensor to multiple names within a module to avoid having to handle this case.
Originally posted by @dfalbel in #968 (comment)
The text was updated successfully, but these errors were encountered: