Unverified Commit 2913cb24 authored by ofirnachum's avatar ofirnachum Committed by GitHub
Browse files

Merge pull request #3692 from ewanlee/patch-1

fix bugs in Python 3.X
parents 4b85dab1 a804f4db
...@@ -86,8 +86,8 @@ class EnvSpec(object): ...@@ -86,8 +86,8 @@ class EnvSpec(object):
else: else:
self.combine_actions = False self.combine_actions = False
self.obs_dims_and_types = zip(self.obs_dims, self.obs_types) self.obs_dims_and_types = tuple(zip(self.obs_dims, self.obs_types))
self.act_dims_and_types = zip(self.act_dims, self.act_types) self.act_dims_and_types = tuple(zip(self.act_dims, self.act_types))
self.total_obs_dim = sum(self.obs_dims) self.total_obs_dim = sum(self.obs_dims)
self.total_sampling_act_dim = sum(self.sampling_dim(dim, typ) self.total_sampling_act_dim = sum(self.sampling_dim(dim, typ)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment