Searched refs:py_shape (Results 1 – 1 of 1) sorted by relevance
1054 PyObject* py_shape = tensor.GetShape(); in Zeros() local1060 Py_DECREF(py_shape); in Zeros()1063 PyObject* arg_list = Py_BuildValue("OO", py_shape, py_dtype); in Zeros()1067 Py_DECREF(py_shape); in Zeros()1075 PyObject* py_shape = tensor.GetShape(); in Ones() local1077 PyObject* arg_list = Py_BuildValue("OO", py_shape, py_dtype); in Ones()1081 Py_DECREF(py_shape); in Ones()1166 PyObject* py_shape = PyTuple_New(shape.dims()); in GetShape() local1168 PyTuple_SET_ITEM(py_shape, i, PyLong_FromLong(shape.dim_size(i))); in GetShape()1171 return py_shape; in GetShape()