Skip to content

Commit 17224b7

Browse files
committed
Update
[ghstack-poisoned]
1 parent 6c69922 commit 17224b7

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/build-wheels-agnostic.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Linux Wheels
1+
name: Build Agnostic Wheels
22

33
on:
44
pull_request:

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def strtobool(val):
131131
elif val in (0, False, "n", "no", "f", "false", "off", "0"):
132132
return 0
133133
else:
134-
raise ValueError("invalid truth value {!r}".format(val))
134+
raise ValueError(f"invalid truth value {val!r}")
135135

136136

137137
def get_extensions():

torchrl/_extension.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ def _is_nightly(version):
5252

5353
else:
5454
EXTENSION_WARNING = (
55-
"Failed to import torchrl C++ binaries. Some modules (eg, prioritized replay buffers) may not work with your installation. "
56-
"This is likely due to a discrepancy between your package version and the PyTorch version. Make sure both are compatible. "
57-
"Usually, torchrl majors follow the pytorch majors within a few days around the release. "
55+
"Failed to import torchrl C++ binaries. Some modules (e.g., prioritized replay buffers) may not work with your installation. "
56+
"This could be because you are using a platform-agnostic version of TorchRL, which does not include C++ binaries. "
57+
"If a more specific version is available for your platform, consider installing it for full functionality. "
58+
"Additionally, ensure that your TorchRL version is compatible with your PyTorch version. "
59+
"TorchRL major versions typically align with PyTorch major versions shortly after their release. "
5860
"For instance, TorchRL 0.5 requires PyTorch 2.4.0, and TorchRL 0.6 requires PyTorch 2.5.0."
5961
)

0 commit comments

Comments
 (0)