forked from hampus-linander/iris
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathx.py
More file actions
33 lines (25 loc) · 837 Bytes
/
x.py
File metadata and controls
33 lines (25 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
## check out envs in gym
#import gymnasium as gym
#for python 3.11
#print(*sorted(gym.envs.registry.keys()), sep="\n")
import ale_py
import gym
#gym.register_envs(ale_py)
#env = gym.make("ALE/Breakout-v5")
## this is for python 3.9
#print(*sorted([env_spec.id for env_spec in gym.envs.registry.all()]), sep="\n")
from gym import envs
from pprint import pprint
pprint(envs.registry.keys())
#env_ids = [env_spec.id for env_spec in gym.envs.registry]
#print(*sorted(env_ids), sep="\n")
## check torch version
#import torch
#print(f"torch version: {torch.__version__}")
## check torchvision version
#import torchvision
#print(f"torchvision version: {torchvision.__version__}")
## check if pytorch is built with MPS support
#import torch
#print(torch.__version__)
#print(torch.backends.mps.is_available()) # Check if MPS is available