There seems to be a bug when I try to run the program in the example.
Traceback (most recent call last):
File "/home/cwj/my_project/RoboticLab/my_imply/skrl_test/test.py", line 97, in <module>
device=device)
File "/home/cwj/my_project/RoboticLab/skrl/skrl/agents/torch/ppo/ppo.py", line 128, in __init__
self.memory.create_tensor(name="states", size=self.observation_space, dtype=torch.float32)
File "/home/cwj/my_project/RoboticLab/skrl/skrl/memories/torch/base.py", line 105, in create_tensor
tensor.fill_(torch.nan)
AttributeError: module 'torch' has no attribute 'nan'
In pytorch 1.9 or lower, there seems no torch.nan, replace it as math.nan can solve the problem.
There seems to be a bug when I try to run the program in the example.
In pytorch 1.9 or lower, there seems no torch.nan, replace it as math.nan can solve the problem.
In skrl/memories/torch/base.py line 105.