All functions from torch.nn.functional are now explicitly imported by name and used directly.
In all other cases where classes from torch.nn are used, we do from torch import nn and then use nn.<Class> throughout.
Note that this was also changed in one docstring in fba9e56. Not sure if that messes up the rendering of the documents. That commit can easily be dropped if needed.
from torch import nn
and then usenn.<Class>
throughout.Note that this was also changed in one docstring in fba9e56. Not sure if that messes up the rendering of the documents. That commit can easily be dropped if needed.
fix #269