SAC custom env
I get this error:
ValueError Traceback (most recent call last)
~\Anaconda3\lib\site-packages\torch\distributions\normal.py in init(self, loc, scale, validate_args) 48 else: 49 batch_shape = self.loc.size() ---> 50 super(Normal, self).init(batch_shape, validate_args=validate_args) 51 52 def expand(self, batch_shape, _instance=None):
~\Anaconda3\lib\site-packages\torch\distributions\distribution.py in init(self, batch_shape, event_shape, validate_args) 54 if not valid.all(): 55 raise ValueError( ---> 56 f"Expected parameter {param} " 57 f"({type(value).name} of shape {tuple(value.shape)}) " 58 f"of distribution {repr(self)} "
ValueError: Expected parameter loc (Tensor of shape (1, 1, 1)) of distribution Normal(loc: tensor([[[nan]]], device='cuda:0', grad_fn=<AddBackward0>), scale: tensor([[[nan]]], device='cuda:0', grad_fn=<ClampBackward1>)) to satisfy the constraint Real(), but found invalid values: tensor([[[nan]]], device='cuda:0', grad_fn=<AddBackward0>)
Any idea how to fix this?
I am running into the same error