Unverified Commit a804f4db authored by Ewanli's avatar Ewanli Committed by GitHub
Browse files

fix bugs in Python 3.X

fix this issue https://github.com/tensorflow/models/issues/2948
parent 4b85dab1
...@@ -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