Skip to content

Replace from torch.nn.functional import ... with import torch.nn.functional as F#89

Open
kalekundert wants to merge 1 commit intoQUVA-Lab:masterfrom
kalekundert:feat-func-import
Open

Replace from torch.nn.functional import ... with import torch.nn.functional as F#89
kalekundert wants to merge 1 commit intoQUVA-Lab:masterfrom
kalekundert:feat-func-import

Conversation

@kalekundert
Copy link
Copy Markdown
Contributor

These two expressions are almost identical, but it turns out that the latter is (currently) necessary to visualize models using torchlens. See johnmarktaylor91/torchlens#18 for more information. While this is a pretty minor benefit, it's also a pretty minor change.

…unctional as F`

These two expressions are almost identical, but it turns out that the
latter is (currently) necessary to visualize models using torchlens.
See johnmarktaylor91/torchlens#18.  While this is a pretty minor
benefit, it's also a pretty minor change.

Signed-off-by: Kale Kundert <kale@thekunderts.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant