-
-
Notifications
You must be signed in to change notification settings - Fork 995
Closed
Labels
bugeasyhelp wantedIssues suitable for, and inviting external contributionsIssues suitable for, and inviting external contributions
Description
Issue Description
The codomain of a LeakyReLUTransform is set to positive but should be real.
Environment
- Pyro version: 1.8.5
Code Snippet
From pyro/distributions/transforms/basic.py
class LeakyReLUTransform(Transform):
"""
Bijective transform via the mapping :math:`y = \text{LeakyReLU}(x)`.
"""
domain = constraints.real
codomain = constraints.positive
Suggestion
class LeakyReLUTransform(Transform):
"""
Bijective transform via the mapping :math:`y = \text{LeakyReLU}(x)`.
"""
domain = constraints.real
codomain = constraints.real
fritzo
Metadata
Metadata
Assignees
Labels
bugeasyhelp wantedIssues suitable for, and inviting external contributionsIssues suitable for, and inviting external contributions