Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1ee7bc0

Browse files
committed
enh: convert TensorFlow to numpy in histplots
1 parent 82fd35d commit 1ee7bc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/cbook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2388,7 +2388,7 @@ def _is_tensorflow_array(x):
23882388
# has created a TensorFlow array, TensorFlow should already be in sys.modules
23892389
# we use `is_tensor` to not depend on the class structure of TensorFlow
23902390
# arrays, as `tf.Variables` are not instances of `tf.Tensor`
2391-
# (but convert the same way)
2391+
# (they both convert the same way)
23922392
return isinstance(x, sys.modules['tensorflow'].is_tensor(x))
23932393
except Exception: # TypeError, KeyError, AttributeError, maybe others?
23942394
# we're attempting to access attributes on imported modules which

0 commit comments

Comments
 (0)