-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from f-dangel/release
[Part 3, v1.2.0] Merge release into master
- Loading branch information
Showing
173 changed files
with
6,585 additions
and
1,471 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,66 @@ | ||
from torch.nn import ( | ||
ELU, | ||
SELU, | ||
AvgPool2d, | ||
Conv1d, | ||
Conv2d, | ||
Conv3d, | ||
ConvTranspose1d, | ||
ConvTranspose2d, | ||
ConvTranspose3d, | ||
CrossEntropyLoss, | ||
MSELoss, | ||
Dropout, | ||
LeakyReLU, | ||
Linear, | ||
LogSigmoid, | ||
MaxPool2d, | ||
MSELoss, | ||
ReLU, | ||
Sigmoid, | ||
Tanh, | ||
ZeroPad2d, | ||
) | ||
|
||
from .avgpool2d import AvgPool2DDerivatives | ||
from .conv1d import Conv1DDerivatives | ||
from .conv_transpose1d import ConvTranspose1DDerivatives | ||
from .conv2d import Conv2DDerivatives | ||
from .conv_transpose2d import ConvTranspose2DDerivatives | ||
from .conv3d import Conv3DDerivatives | ||
from .conv_transpose3d import ConvTranspose3DDerivatives | ||
from .crossentropyloss import CrossEntropyLossDerivatives | ||
from .mseloss import MSELossDerivatives | ||
from .dropout import DropoutDerivatives | ||
from .elu import ELUDerivatives | ||
from .leakyrelu import LeakyReLUDerivatives | ||
from .linear import LinearDerivatives | ||
from .logsigmoid import LogSigmoidDerivatives | ||
from .maxpool2d import MaxPool2DDerivatives | ||
from .mseloss import MSELossDerivatives | ||
from .relu import ReLUDerivatives | ||
from .selu import SELUDerivatives | ||
from .sigmoid import SigmoidDerivatives | ||
from .tanh import TanhDerivatives | ||
from .zeropad2d import ZeroPad2dDerivatives | ||
|
||
derivatives_for = { | ||
Linear: LinearDerivatives, | ||
Conv1d: Conv1DDerivatives, | ||
Conv2d: Conv2DDerivatives, | ||
Conv3d: Conv3DDerivatives, | ||
AvgPool2d: AvgPool2DDerivatives, | ||
MaxPool2d: MaxPool2DDerivatives, | ||
ZeroPad2d: ZeroPad2dDerivatives, | ||
Dropout: DropoutDerivatives, | ||
ReLU: ReLUDerivatives, | ||
Tanh: TanhDerivatives, | ||
Sigmoid: SigmoidDerivatives, | ||
ConvTranspose1d: ConvTranspose1DDerivatives, | ||
ConvTranspose2d: ConvTranspose2DDerivatives, | ||
ConvTranspose3d: ConvTranspose3DDerivatives, | ||
LeakyReLU: LeakyReLUDerivatives, | ||
LogSigmoid: LogSigmoidDerivatives, | ||
ELU: ELUDerivatives, | ||
SELU: SELUDerivatives, | ||
CrossEntropyLoss: CrossEntropyLossDerivatives, | ||
MSELoss: MSELossDerivatives, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from backpack.core.derivatives.convnd import ConvNDDerivatives | ||
|
||
|
||
class Conv1DDerivatives(ConvNDDerivatives): | ||
def __init__(self): | ||
super().__init__(N=1) |
Oops, something went wrong.