Skip to content

Commit

Permalink
Just use cudf's own copy method rather than calling cudf_helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
dagardner-nv committed Oct 14, 2024
1 parent c800493 commit b89e2b4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions python/morpheus/morpheus/_lib/src/utilities/cudf_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,13 @@ pybind11::object CudfHelper::table_from_table_with_metadata(cudf::io::table_with

pybind11::object CudfHelper::table_from_table_info(const TableInfoBase& table_info)
{
// Get the table info data from the table_into
auto table_info_data = table_info.get_data();

auto py_object_parent = table_info.get_parent()->get_py_object();

// Need to guarantee that we have the gil here
pybind11::gil_scoped_acquire gil;
using namespace pybind11::literals;

return pybind11::reinterpret_steal<pybind11::object>(
(PyObject*)make_table_from_table_info_data(std::move(table_info_data), py_object_parent.ptr()));
return py_object_parent.attr("copy")("deep"_a = true);
}

TableInfoData CudfHelper::table_info_data_from_table(pybind11::object table)
Expand Down

0 comments on commit b89e2b4

Please sign in to comment.