28namespace py = pybind11;
33 py::class_<tensorinfo>(
m,
"tensorinfo",
"tensorinfo describes the type and shape of tensors",
35 .def(py::init<>(),
"The constructor of tensorinfo")
41 "The dimension of tensor. Maximum rank is 6 (NNFW_MAX_RANK).");
void set_dims(tensorinfo &tensor_info, const py::list &array)
Set nnfw_tensorinfo->dims.
void bind_tensorinfo(pybind11::module_ &m)
py::list get_dims(const tensorinfo &tensor_info)
Get nnfw_tensorinfo->dims.
tensor info describes the type and shape of tensors