MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / ExportOpResize

Function ExportOpResize

python/mod_cvcuda/operators/OpResize.cpp:101–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99} // namespace
100
101void ExportOpResize(py::module &m)
102{
103 using namespace pybind11::literals;
104
105 py::options options;
106 options.disable_function_signatures();
107
108 m.def("resize", &Resize, "src"_a, "shape"_a, "interp"_a = NVCV_INTERP_LINEAR, py::kw_only(), "stream"_a = nullptr,
109 R"pbdoc(
110
111 cvcuda.resize(src: cvcuda.Tensor, shape: Tuple[int], interp: cvcuda.Interp = cvcuda.Interp.LINEAR, stream: Optional[cvcuda.Stream] = None) -> cvcuda.Tensor
112
113 Executes the Resize operation on the given cuda stream.
114
115 See also:
116 Refer to the CV-CUDA C API reference for the Resize operator
117 for more details and usage examples.
118
119 Args:
120 src (cvcuda.Tensor): Input tensor containing one or more images.
121 shape (Tuple[int]): Shape of output tensor.
122 interp (cvcuda.Interp, optional): Interpolation type used for transform.
123 stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation.
124
125 Returns:
126 cvcuda.Tensor: The output tensor.
127
128 Caution:
129 Restrictions to several arguments may apply. Check the C
130 API references of the CV-CUDA operator.
131 )pbdoc");
132
133 m.def("resize_into", &ResizeInto, "dst"_a, "src"_a, "interp"_a = NVCV_INTERP_LINEAR, py::kw_only(),
134 "stream"_a = nullptr, R"pbdoc(
135
136 cvcuda.resize_into(dst: cvcuda.Tensor, src: cvcuda.Tensor, interp: cvcuda.Interp = cvcuda.Interp.LINEAR, stream: Optional[cvcuda.Stream] = None)
137
138 Executes the Resize operation on the given cuda stream.
139
140 See also:
141 Refer to the CV-CUDA C API reference for the Resize operator
142 for more details and usage examples.
143
144 Args:
145 dst (cvcuda.Tensor): Output tensor to store the result of the operation.
146 src (cvcuda.Tensor): Input tensor containing one or more images.
147 interp (cvcuda.Interp, optional): Interpolation type used for transform.
148 stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation.
149
150 Returns:
151 None
152
153 Caution:
154 Restrictions to several arguments may apply. Check the C
155 API references of the CV-CUDA operator.
156 )pbdoc");
157
158 m.def("resize", &ResizeVarShape, "src"_a, "sizes"_a, "interp"_a = NVCV_INTERP_LINEAR, py::kw_only(),

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected