pytorch_revgrad


توضیحات

A pytorch module (and function) to reverse gradients.
ویژگی مقدار
سیستم عامل -
نام فایل pytorch_revgrad-0.2.0
نام pytorch_revgrad
نسخه کتابخانه 0.2.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Jan Freyberg
ایمیل نویسنده jan.freyberg@gmail.com
آدرس صفحه اصلی https://github.com/janfreyberg/pytorch-revgrad
آدرس اینترنتی https://pypi.org/project/pytorch_revgrad/
مجوز -
# `pytorch-revgrad` [![PyPI version](https://badge.fury.io/py/pytorch-revgrad.svg)](https://badge.fury.io/py/pytorch-revgrad) [![Coverage Status](https://coveralls.io/repos/github/janfreyberg/pytorch-revgrad/badge.svg?branch=master)](https://coveralls.io/github/janfreyberg/pytorch-revgrad?branch=master) [![ci status](https://travis-ci.org/janfreyberg/pytorch-revgrad.svg?branch=master)](https://travis-ci.com/janfreyberg/pytorch-revgrad) ![python version](https://camo.githubusercontent.com/0a3ef56c3f80aca9bc6bafeab605803d81fe2284/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f707974686f6e2d332e352532422d626c75652e737667) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) This package implements a gradient reversal layer for pytorch modules. ## Example usage ```python import torch from pytorch_revgrad import RevGrad model = torch.nn.Sequential( torch.nn.Linear(10, 5), torch.nn.Linear(5, 2), RevGrad() ) ```


نیازمندی

مقدار نام
- numpy
- torch>=1.0.0
- ipython
- pytest
- pytest-cov
- flake8
- pytest-flake8
- coveralls


زبان مورد نیاز

مقدار نام
>=3.5 Python


نحوه نصب


نصب پکیج whl pytorch_revgrad-0.2.0:

    pip install pytorch_revgrad.whl


نصب پکیج tar.gz pytorch_revgrad-0.2.0:

    pip install pytorch_revgrad.tar.gz