Home
last modified time | relevance | path

Searched refs:numpy_array (Results 1 – 4 of 4) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/python/
Djax_jit.cc460 py::array numpy_array = py::cast<py::array>(h); in ArgSignatureOfValue() local
461 if (IsFloat0(numpy_array)) { in ArgSignatureOfValue()
467 const py::dtype raw_dtype = numpy_array.dtype(); in ArgSignatureOfValue()
480 reinterpret_cast<const xla::int64*>(numpy_array.shape()), in ArgSignatureOfValue()
481 numpy_array.ndim()), in ArgSignatureOfValue()
485 xla::DtypeToPrimitiveType(numpy_array.dtype())); in ArgSignatureOfValue()
489 reinterpret_cast<const xla::int64*>(numpy_array.shape()), in ArgSignatureOfValue()
490 numpy_array.ndim()), in ArgSignatureOfValue()
714 py::array numpy_array = py::cast<py::array>(h); in HandleNdarray() local
715 if (IsFloat0(numpy_array)) { in HandleNdarray()
[all …]
/external/python/cpython3/Lib/test/
Dtest_buffer.py44 from numpy import ndarray as numpy_array unknown
46 numpy_array = None variable
70 if numpy_array:
636 return numpy_array(buffer=buf, shape=shape, strides=strides,
1906 if numpy_array:
1934 if numpy_array:
1985 if numpy_array:
2265 if numpy_array:
2266 na = numpy_array(buffer=bytearray(lst),
2290 if numpy_array:
[all …]
/external/python/pybind11/tests/
Dtest_numpy_array.py6 from pybind11_tests import numpy_array as m
Dtest_numpy_array.cpp135 TEST_SUBMODULE(numpy_array, sm) { in TEST_SUBMODULE() argument