From b89e2b44f7cff010c4a5c1171f5cbc293b30c19d Mon Sep 17 00:00:00 2001 From: David Gardner Date: Mon, 14 Oct 2024 16:59:24 -0700 Subject: [PATCH] Just use cudf's own copy method rather than calling cudf_helpers --- python/morpheus/morpheus/_lib/src/utilities/cudf_util.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/python/morpheus/morpheus/_lib/src/utilities/cudf_util.cpp b/python/morpheus/morpheus/_lib/src/utilities/cudf_util.cpp index fbc86ad0d2..d3d6fc3ff8 100644 --- a/python/morpheus/morpheus/_lib/src/utilities/cudf_util.cpp +++ b/python/morpheus/morpheus/_lib/src/utilities/cudf_util.cpp @@ -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( - (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)