simplexfix (#26122)

This commit is contained in:
Artur Niederfahrenhorst 2022-06-27 17:25:19 +02:00 committed by GitHub
parent 3d8ca6cf0f
commit 64a0eae758
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,6 @@ class Simplex(gym.Space):
def __init__(self, shape, concentration=None, dtype=np.float32):
assert type(shape) in [tuple, list]
assert len(shape) == 2, ""
super().__init__(shape, dtype)
self.dim = self.shape[-1]