Home
last modified time | relevance | path

Searched refs:np_arrays (Results 1 – 13 of 13) sorted by relevance

/external/tensorflow/tensorflow/python/eager/
Dfunction.cc42 static const py::module* np_arrays = new py::module( in _build_call_outputs() local
57 ndarr_result[i] = np_arrays->attr("tensor_to_ndarray")(list_result[i]); in _build_call_outputs()
61 return np_arrays->attr("tensor_to_ndarray")(list_result[0]); in _build_call_outputs()
Dfunction.py86 np_arrays = lazy_loader.LazyLoader( variable
/external/tensorflow/tensorflow/python/ops/numpy_ops/
Dnp_logic_test.py26 from tensorflow.python.ops.numpy_ops import np_arrays
92 self.assertIsInstance(actual, np_arrays.ndarray)
102 return s if not isinstance(s, np_arrays.ndarray) else s.numpy()
Dnp_array_ops.py40 from tensorflow.python.ops.numpy_ops import np_arrays
134 if not isinstance(shape, np_arrays.ndarray):
135 shape = asarray(np_arrays.convert_to_tensor(shape, dtype_hint=np.int32))
178 result_t = np_arrays.convert_to_tensor(result_t, dtype_hint=dtype)
224 if isinstance(a, np_arrays.ndarray) and (
358 if isinstance(a, np_arrays.ndarray) and dtype == a.dtype.as_numpy_dtype:
367 isinstance(t1, np_arrays.ndarray) and dtype == t1.dtype.as_numpy_dtype):
370 isinstance(t2, np_arrays.ndarray) and dtype == t2.dtype.as_numpy_dtype):
744 setattr(np_arrays.ndarray, '__round__', around)
1038 if isinstance(arrays, (np_arrays.ndarray, ops.Tensor)):
[all …]
Dnp_arrays_test.py27 from tensorflow.python.ops.numpy_ops import np_arrays
58 if not isinstance(out, np_arrays.ndarray):
205 self.assertIsInstance(repacked[0], np_arrays.ndarray)
206 self.assertIsInstance(repacked[1], np_arrays.ndarray)
D__init__.py177 from tensorflow.python.ops.numpy_ops.np_arrays import ndarray
DBUILD15 "np_arrays.py",
Dnp_utils.py34 from tensorflow.python.ops.numpy_ops import np_arrays
89 if isinstance(val, np_arrays.ndarray):
Dnp_math_ops_test.py29 from tensorflow.python.ops.numpy_ops import np_arrays
158 self.assertIsInstance(actual, np_arrays.ndarray)
Dnp_array_ops_test.py38 from tensorflow.python.ops.numpy_ops import np_arrays
81 return not (isinstance(s, np_arrays.ndarray) and s.ndim == 0)
530 self.assertIsInstance(actual, np_arrays.ndarray)
997 self.assertIsInstance(actual, np_arrays.ndarray)
1175 self.assertIsInstance(actual, np_arrays.ndarray)
Dnp_math_ops.py42 from tensorflow.python.ops.numpy_ops import np_arrays
180 x1, np_arrays.ndarray) and x1.dtype != dtypes.bool:
241 setattr(np_arrays.ndarray, '_matmul', matmul)
956 0) > np_arrays.ndarray.__array_priority__:
/external/tensorflow/tensorflow/python/keras/engine/
Dsequential.py39 from tensorflow.python.ops.numpy_ops import np_arrays
367 inputs, np_arrays.ndarray):
Dbase_layer.py77 from tensorflow.python.ops.numpy_ops import np_arrays
979 np_arrays.ndarray, np.ndarray, float, int)) for x in input_list):
1048 np_arrays.ndarray, np.ndarray, float, int)) for x in input_list):
1053 if isinstance(x, (np_arrays.ndarray, np.ndarray, float, int)):
3337 if isinstance(x, (np_arrays.ndarray, np.ndarray, float, int)):