Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Nov 18, 2024
1 parent 263f567 commit 540eaa8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions torchrl/modules/distributions/continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@
except ImportError:
from torch._dynamo import is_compiling as is_dynamo_compiling

TORCH_VERSION_PRE_2_6 = version.parse(torch.__version__).base_version < version.parse(
"2.6.0"
)
TORCH_VERSION = version.parse(torch.__version__).base_version
TORCH_VERSION_PRE_2_6 = version.parse(TORCH_VERSION) < version.parse("2.6.0")


class IndependentNormal(D.Independent):
Expand Down

0 comments on commit 540eaa8

Please sign in to comment.