| 12 | using namespace pybind11::literals; |
| 13 | |
| 14 | PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) |
| 15 | { |
| 16 | m.def("cast_to_byte_tensor", |
| 17 | py::overload_cast<at::Tensor&>(&cast_to_byte_tensor), |
| 18 | "Cast a 1-dimensional tensor of any type to byte tensor.", |
| 19 | "src_tensor"_a); |
| 20 | |
| 21 | m.def("cast_to_byte_tensor", |
| 22 | py::overload_cast<std::vector<at::Tensor>&>(&cast_to_byte_tensor), |
| 23 | "Cast a multi-dimensional tensor of any type to byte tensor.", |
| 24 | "src_tensor"_a); |
| 25 | } |
nothing calls this directly
no outgoing calls
no test coverage detected