HomeSort by relevance Sort by last modified time
    Searched refs:np_array (Results 1 - 12 of 12) sorted by null

  /external/autotest/client/cros/audio/
audio_data.py 95 np_array = np.fromstring(binary, dtype=np_dtype)
96 n_frames = len(np_array) / self.channel
97 # Reshape np_array into an array of shape (n_frames, channel).
98 np_array = np_array.reshape(n_frames, self.channel)
100 self.channel_data = np_array.transpose()
  /tools/test/connectivity/acts/framework/acts/test_utils/audio_analysis_lib/
audio_data.py 106 np_array = numpy.fromstring(binary, dtype=np_dtype)
108 n_frames = len(np_array) / self.channel
109 # Reshape np_array into an array of shape (n_frames, channel).
110 np_array = np_array.reshape(int(n_frames), self.channel)
112 self.channel_data = np_array.transpose()
  /external/tensorflow/tensorflow/contrib/slim/python/slim/data/
tfexample_decoder_test.py 243 np_array = np.array([[['ab'], ['cd'], ['ef']],
247 'labels': self._BytesFeature(np_array),
268 labels = labels.astype(np_array.dtype)
269 self.assertTrue(np.array_equal(np_array, labels))
272 np_array = np.random.rand(2, 3, 1).astype('f')
275 'array': self._EncodedFloatFeature(np_array),
283 'array': parsing_ops.FixedLenFeature(np_array.shape, dtypes.float32)
289 self.assertAllEqual(tf_array.eval(), np_array)
292 np_array = np.random.randint(1, 10, size=(2, 3, 1))
295 'array': self._EncodedInt64Feature(np_array),
    [all...]
  /external/tensorflow/tensorflow/python/lib/core/
ndarray_tensor_bridge.cc 206 PyObject* np_array = local
214 if (PyArray_SetBaseObject(reinterpret_cast<PyArrayObject*>(np_array),
219 *result = PyArray_Return(reinterpret_cast<PyArrayObject*>(np_array));
py_func.cc 406 PyArrayObject* np_array = reinterpret_cast<PyArrayObject*>(obj); local
410 PyObject** out = reinterpret_cast<PyObject**>(PyArray_DATA(np_array));
425 memcpy(PyArray_DATA(np_array), p.data(), p.size());
427 *ret = PyArray_Return(np_array);
  /external/autotest/client/cros/multimedia/
audio_facade_native.py 50 np_array = np.fromstring(binary, dtype='<i2')
51 return not np.any(np_array)
  /external/tensorflow/tensorflow/python/client/
session_test.py     [all...]
  /external/tensorflow/tensorflow/contrib/factorization/python/ops/
wals_test.py 48 def np_array_to_sparse(self, np_array):
50 return factorization_ops_test_utils.np_matrix_to_tf_sparse(np_array)
  /external/tensorflow/tensorflow/python/kernel_tests/
fifo_queue_test.py     [all...]
padding_fifo_queue_test.py     [all...]
py_func_test.py 210 np_array = np.array([1.0, 2.0], dtype=np.float32)
211 tf_array = script_ops.py_func(lambda: np_array, [], [dtypes.float32])
214 self.assertAllEqual(np_array, [1.0, 2.0])
  /external/tensorflow/tensorflow/python/framework/
test_util.py     [all...]

Completed in 243 milliseconds