31 auto sv = py::bind_vector<SizeVector>(
33 "A vector of integers for specifying shape, strides, etc.");
34 sv.def(py::init([](int64_t i) {
return SizeVector({i}); }));
35 py::implicitly_convertible<py::int_, SizeVector>();
38 py::implicitly_convertible<py::tuple, SizeVector>();
39 py::implicitly_convertible<py::list, SizeVector>();
40 auto dsv = py::bind_vector<DynamicSizeVector>(
41 m,
"DynamicSizeVector",
42 "A vector of integers for specifying shape, strides, etc. Some "
43 "elements can be None.");
std::string ToString() const
void pybind_core_size_vector(py::module &m)
Generic file read and write utility for python interface.