Gradient reversal layer for pytorch.
Project description
pytorch-revgrad
This package implements a gradient reversal layer for pytorch modules.
Example usage
import torch
from pytorch_revgrad import RevGrad
model = torch.nn.Sequential(
torch.nn.Linear(10, 5),
torch.nn.Linear(5, 2),
RevGrad()
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytorch-revgrad-0.0.1.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for pytorch_revgrad-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b75361d9356ab7e8554cbb6e4d55e33bf84aa07c49a4a3d341bef9b6e30da012 |
|
MD5 | 854a365965086a5fc2d2c06a908bd429 |
|
BLAKE2b-256 | a8de20eea4c69aa03c2f3e27832e0830f25723580336b5210614a3a1fa445d5c |