| 57 | } // namespace |
| 58 | |
| 59 | void ExportOpReformat(py::module &m) |
| 60 | { |
| 61 | using namespace pybind11::literals; |
| 62 | |
| 63 | m.def("reformat", &Reformat, "src"_a, "layout"_a, py::kw_only(), "stream"_a = nullptr, R"pbdoc( |
| 64 | |
| 65 | Executes the Reformat operation on the given cuda stream. |
| 66 | |
| 67 | See also: |
| 68 | Refer to the CV-CUDA C API reference for the Reformat operator |
| 69 | for more details and usage examples. |
| 70 | |
| 71 | Args: |
| 72 | src (cvcuda.Tensor): Input tensor containing one or more images. |
| 73 | layout (cvcuda.TensorLayout): The tensor layout of the output tensor ((N)CHW/(N)HWC). |
| 74 | stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation. |
| 75 | |
| 76 | Returns: |
| 77 | cvcuda.Tensor: The output tensor. |
| 78 | |
| 79 | Caution: |
| 80 | Restrictions to several arguments may apply. Check the C |
| 81 | API references of the CV-CUDA operator. |
| 82 | )pbdoc"); |
| 83 | |
| 84 | m.def("reformat_into", &ReformatInto, "dst"_a, "src"_a, py::kw_only(), "stream"_a = nullptr, R"pbdoc( |
| 85 | |
| 86 | Executes the Reformat operation on the given cuda stream. |
| 87 | |
| 88 | See also: |
| 89 | Refer to the CV-CUDA C API reference for the Reformat operator |
| 90 | for more details and usage examples. |
| 91 | |
| 92 | Args: |
| 93 | dst (cvcuda.Tensor): Output tensor to store the result of the operation. |
| 94 | src (cvcuda.Tensor): Input tensor containing one or more images. |
| 95 | stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation. |
| 96 | |
| 97 | Returns: |
| 98 | None |
| 99 | |
| 100 | Caution: |
| 101 | Restrictions to several arguments may apply. Check the C |
| 102 | API references of the CV-CUDA operator. |
| 103 | )pbdoc"); |
| 104 | } |
| 105 | |
| 106 | } // namespace cvcudapy |