Thanks to visit codestin.com Credit goes to github.com
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 1ee7bc0 commit a6f3635Copy full SHA for a6f3635
lib/matplotlib/cbook.py
@@ -2381,6 +2381,7 @@ def _is_jax_array(x):
2381
# may have arbitrary user code, so we deliberately catch all exceptions
2382
return False
2383
2384
+
2385
def _is_tensorflow_array(x):
2386
"""Check if 'x' is a TensorFlow Tensor or Variable."""
2387
try:
lib/matplotlib/tests/test_cbook.py
@@ -996,6 +996,7 @@ def __array__(self):
996
# is the same Python object, just the same values.
997
assert_array_equal(result, data)
998
999
1000
def test_unpack_to_numpy_from_tensorflow():
1001
"""
1002
Test that tensorflow arrays are converted to NumPy arrays.
0 commit comments