Searched refs:py_shape (Results 1 – 1 of 1) sorted by relevance
1427 PyObject* py_shape = PyTuple_New(shape.dims()); in GetShape() local1429 PyTuple_SET_ITEM(py_shape, i, PyLong_FromLong(shape.dim_size(i))); in GetShape()1432 return py_shape; in GetShape()1443 PyObject* py_shape = GetShape(); in OnesLike() local1445 PyObject* result = py_vspace->Ones(py_shape, dtype_field); in OnesLike()1447 Py_DECREF(py_shape); in OnesLike()1456 PyObject* py_shape = GetShape(); in ZerosLike() local1458 PyObject* result = py_vspace->Zeros(py_shape, dtype_field); in ZerosLike()1460 Py_DECREF(py_shape); in ZerosLike()