PyTorch Gradient Reversal Layer

JSON →
library 0.2.0 ·python maintenance
verified May 24, 2026

pytorch-revgrad is a minimalist PyTorch package that provides a gradient reversal layer (GRL) as both a module and a function. This layer is commonly used in domain adaptation techniques, such as Domain-Adversarial Neural Networks (DANN), to encourage feature extractors to learn domain-invariant representations by reversing the gradient signal for a subsequent domain classifier. The current version, `0.2.0`, was released in January 2021, and the library maintains a low release cadence, indicating stability for its core functionality.

total hits 22
actors 7 distinct systems
last hit 1d ago Bingbot
GPTBot
6
MetaBot
4
Script
2
ClaudeBot
1
Search engines
1

top countries 🇺🇸 United States · 🇫🇷 France · 🇩🇪 Germany · 🇨🇦 Canada · 🇳🇴 Norway