We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62a026b commit 9e2c285Copy full SHA for 9e2c285
tf_agents/utils/example_encoding.py
@@ -19,7 +19,7 @@
19
from __future__ import division
20
from __future__ import print_function
21
22
-import collections
+from collections import abc
23
import io
24
import gin
25
@@ -171,7 +171,7 @@ def _example_decoder(serialized):
171
172
def _validate_shape(shape):
173
"""Check that shape is a valid array shape."""
174
- if not isinstance(shape, collections.Iterable):
+ if not isinstance(shape, abc.Iterable):
175
raise TypeError('shape must be a tuple or other iterable object, not %s' %
176
type(shape).__name__)
177
0 commit comments