Yes, you are spot on. the difference between torch.nn
and torch.nn.functional
is a matter of convenience and taste. torch.nn
is more convenient for methods which have learnable parameters.
17 Likes
Yes, you are spot on. the difference between torch.nn
and torch.nn.functional
is a matter of convenience and taste. torch.nn
is more convenient for methods which have learnable parameters.