File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ permissions:
19
19
20
20
jobs :
21
21
generate-matrix :
22
- uses : pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
22
+ uses : pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@Remove-Builds-Limits-for-Testing
23
23
with :
24
24
package-type : wheel
25
25
os : macos-arm64
26
26
test-infra-repository : pytorch/test-infra
27
- test-infra-ref : main
27
+ test-infra-ref : Remove-Builds-Limits-for-Testing
28
28
build :
29
29
needs : generate-matrix
30
30
strategy :
Original file line number Diff line number Diff line change @@ -14,3 +14,5 @@ def test_imports():
14
14
from torchrl .envs .gym_like import GymLikeEnv # noqa: F401
15
15
from torchrl .modules import SafeModule # noqa: F401
16
16
from torchrl .objectives .common import LossModule # noqa: F401
17
+
18
+ PrioritizedReplayBuffer (alpha = 1.1 , beta = 1.1 )
Original file line number Diff line number Diff line change 3
3
# This source code is licensed under the MIT license found in the
4
4
# LICENSE file in the root directory of this source tree.
5
5
6
- import importlib
6
+ import importlib . util
7
7
import warnings
8
8
9
9
10
10
def is_module_available (* modules : str ) -> bool :
11
- r """Returns if a top-level module with :attr:`name` exists *without** importing it.
11
+ """Returns if a top-level module with :attr:`name` exists *without** importing it.
12
12
13
13
This is generally safer than try-catch block around a
14
14
`import X`. It avoids third party libraries breaking assumptions of some of
15
15
our tests, e.g., setting multiprocessing start method when imported
16
16
(see librosa/#747, torchvision/#544).
17
-
18
17
"""
19
18
return all (importlib .util .find_spec (m ) is not None for m in modules )
20
19
You can’t perform that action at this time.
0 commit comments