Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
91e03b91
Unverified
Commit
91e03b91
authored
Dec 16, 2020
by
Vasilis Vryniotis
Committed by
GitHub
Dec 16, 2020
Browse files
Fixing incorrect doc example in MNASNet. (#3180)
* Fixing incorrect doc example in MNASNet. * Fixing incorrect output.
parent
1a300d84
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torchvision/models/mnasnet.py
torchvision/models/mnasnet.py
+2
-2
No files found.
torchvision/models/mnasnet.py
View file @
91e03b91
...
@@ -93,11 +93,11 @@ def _get_depths(alpha: float) -> List[int]:
...
@@ -93,11 +93,11 @@ def _get_depths(alpha: float) -> List[int]:
class
MNASNet
(
torch
.
nn
.
Module
):
class
MNASNet
(
torch
.
nn
.
Module
):
""" MNASNet, as described in https://arxiv.org/pdf/1807.11626.pdf. This
""" MNASNet, as described in https://arxiv.org/pdf/1807.11626.pdf. This
implements the B1 variant of the model.
implements the B1 variant of the model.
>>> model = MNASNet(1
00
0,
1.
0)
>>> model = MNASNet(1
.
0,
num_classes=100
0)
>>> x = torch.rand(1, 3, 224, 224)
>>> x = torch.rand(1, 3, 224, 224)
>>> y = model(x)
>>> y = model(x)
>>> y.dim()
>>> y.dim()
1
2
>>> y.nelement()
>>> y.nelement()
1000
1000
"""
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment