Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/xla/python/
Dnumpy_bridge.cc259 PyObject* py_minor_to_major; in XlaShapeFromPyShape() local
261 TF_ASSIGN_OR_RETURN(py_minor_to_major, call_method("minor_to_major")); in XlaShapeFromPyShape()
265 if (py_minor_to_major != Py_None && !PyTuple_Check(py_minor_to_major)) { in XlaShapeFromPyShape()
271 if (py_minor_to_major != Py_None && in XlaShapeFromPyShape()
272 length != PyTuple_Size(py_minor_to_major)) { in XlaShapeFromPyShape()
285 if (py_minor_to_major != Py_None) { in XlaShapeFromPyShape()
287 PyIntOrPyLongToLong(PyTuple_GetItem(py_minor_to_major, i)); in XlaShapeFromPyShape()
293 bool with_layout = py_minor_to_major != Py_None; in XlaShapeFromPyShape()
295 Py_DECREF(py_minor_to_major); in XlaShapeFromPyShape()