Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Joaquin Anton Guirao <[email protected]>
  • Loading branch information
jantonguirao committed Dec 23, 2024
1 parent ce34260 commit bdf5c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dali/python/backend_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@ void ExposeTensorList(py::module &m) {
Returns a `TensorListGPU` object being a copy of this `TensorListCPU`.
)code",
py::return_value_policy::take_ownership)
.def("as_cpu", [](TensorList<CPUBackend> &t) {
.def("as_cpu", [](TensorList<CPUBackend> &t) -> TensorList<CPUBackend> & {
return t;
}, R"code(Passthrough, as it is already an instance of `TensorListCPU`.)code",
py::return_value_policy::reference_internal)
Expand Down

0 comments on commit bdf5c5f

Please sign in to comment.