Skip to content
Snippets Groups Projects
Commit 0baca28d authored by Daniel CARRON's avatar Daniel CARRON :b:
Browse files

Updated extras.inv to fix issues with lightning's doc

The obects.inv file from lightning's documentation is missing a lot of
methods, raising errors when building with sphinx. Problematic methods
have been added to the extras.txt and encoded into extras.inv
parent 0dfd3585
No related branches found
No related tags found
1 merge request!4Moved code to lightning
Pipeline #73259 failed
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
# Project: extras # Project: extras
# Version: stable # Version: stable
# The remainder of this file is compressed using zlib. # The remainder of this file is compressed using zlib.
xE лSti * xڭA
P~M߃lYfh5Wٯit}No!%]B-4OΌ 1 E[[ R MH2A\.{OItņTLR+.$Uns<lI ԟ2hl1iB$`g/aG%<XU)ibłw/
\ No newline at end of file \ No newline at end of file
...@@ -3,3 +3,6 @@ ...@@ -3,3 +3,6 @@
# Version: stable # Version: stable
# The remainder of this file is compressed using zlib. # The remainder of this file is compressed using zlib.
torchvision.transforms py:module 1 https://pytorch.org/vision/stable/transforms.html - torchvision.transforms py:module 1 https://pytorch.org/vision/stable/transforms.html -
lightning.pytorch.core.module.LightningModule.forward py:method 1 api/lightning.pytorch.core.LightningModule.html#$ -
lightning.pytorch.core.module.LightningModule.predict_step py:method 1 api/lightning.pytorch.core.LightningModule.html#$ -
optimizer_step py:method 1 api/lightning.pytorch.core.LightningModule.html#$ -
...@@ -10,7 +10,7 @@ import torchvision.models as models ...@@ -10,7 +10,7 @@ import torchvision.models as models
from .normalizer import TorchVisionNormalizer from .normalizer import TorchVisionNormalizer
class Alexnet(pl.core.LightningModule): class Alexnet(pl.LightningModule):
"""Alexnet module. """Alexnet module.
Note: only usable with a normalized dataset Note: only usable with a normalized dataset
...@@ -43,20 +43,6 @@ class Alexnet(pl.core.LightningModule): ...@@ -43,20 +43,6 @@ class Alexnet(pl.core.LightningModule):
self.model_ft.classifier[6] = nn.Linear(512, 1) self.model_ft.classifier[6] = nn.Linear(512, 1)
def forward(self, x): def forward(self, x):
"""
Parameters
----------
x : list
list of tensors.
Returns
-------
tensor : :py:class:`torch.Tensor`
"""
x = self.normalizer(x) x = self.normalizer(x)
x = self.model_ft(x) x = self.model_ft(x)
......
...@@ -43,22 +43,7 @@ class Densenet(pl.LightningModule): ...@@ -43,22 +43,7 @@ class Densenet(pl.LightningModule):
) )
def forward(self, x): def forward(self, x):
"""
Parameters
----------
x : list
list of tensors.
Returns
-------
tensor : :py:class:`torch.Tensor`
"""
x = self.normalizer(x) x = self.normalizer(x)
x = self.model_ft(x) x = self.model_ft(x)
return x return x
......
...@@ -38,21 +38,6 @@ class DensenetRS(pl.LightningModule): ...@@ -38,21 +38,6 @@ class DensenetRS(pl.LightningModule):
self.model_ft.classifier = nn.Linear(num_ftrs, 14) self.model_ft.classifier = nn.Linear(num_ftrs, 14)
def forward(self, x): def forward(self, x):
"""
Parameters
----------
x : list
list of tensors.
Returns
-------
tensor : :py:class:`torch.Tensor`
"""
x = self.normalizer(x) x = self.normalizer(x)
x = self.model_ft(x) x = self.model_ft(x)
return x return x
......
...@@ -27,20 +27,6 @@ class LogisticRegression(pl.LightningModule): ...@@ -27,20 +27,6 @@ class LogisticRegression(pl.LightningModule):
self.linear = nn.Linear(self.hparams.input_size, 1) self.linear = nn.Linear(self.hparams.input_size, 1)
def forward(self, x): def forward(self, x):
"""
Parameters
----------
x : list
list of tensors.
Returns
-------
tensor : :py:class:`torch.Tensor`
"""
output = self.linear(x) output = self.linear(x)
return output return output
......
...@@ -93,20 +93,6 @@ class PASA(pl.LightningModule): ...@@ -93,20 +93,6 @@ class PASA(pl.LightningModule):
self.dense = nn.Linear(80, 1) # Fully connected layer self.dense = nn.Linear(80, 1) # Fully connected layer
def forward(self, x): def forward(self, x):
"""
Parameters
----------
x : list
list of tensors.
Returns
-------
tensor : :py:class:`torch.Tensor`
"""
x = self.normalizer(x) x = self.normalizer(x)
# First convolution block # First convolution block
......
...@@ -31,20 +31,6 @@ class SignsToTB(pl.LightningModule): ...@@ -31,20 +31,6 @@ class SignsToTB(pl.LightningModule):
self.fc2 = torch.nn.Linear(self.hparams.hidden_size, 1) self.fc2 = torch.nn.Linear(self.hparams.hidden_size, 1)
def forward(self, x): def forward(self, x):
"""
Parameters
----------
x : list
list of tensors.
Returns
-------
tensor : :py:class:`torch.Tensor`
"""
hidden = self.fc1(x) hidden = self.fc1(x)
relu = self.relu(hidden) relu = self.relu(hidden)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment