↰ Return to documentation for file (morpheus/_lib/src/utilities/cudf_util.cpp
)
#include "morpheus/utilities/cudf_util.hpp"
#include "morpheus/objects/table_info.hpp"
#include <cudf/table/table.hpp>// IWYU pragma: keep
#include <glog/logging.h>
#include <pybind11/pybind11.h>
#include <ostream>// Needed for logging
#include <utility>// for move
#include "cudf_helpers_api.h"
void morpheus::load_cudf_helpers()
{
if (import_morpheus___lib__cudf_helpers() != 0)
{
pybind11::error_already_set ex;
LOG(ERROR) << "Could not load cudf_helpers library: " << ex.what();
throw ex;
}
}
pybind11::object morpheus::proxy_table_from_table_with_metadata(cudf::io::table_with_metadata &&table,
int index_col_count)
{
return pybind11::reinterpret_steal<pybind11::object>(
(PyObject *)make_table_from_table_with_metadata(std::move(table), index_col_count));
}
morpheus::TableInfo morpheus::proxy_table_info_from_table(pybind11::object table,
std::shared_ptr<const morpheus::IDataTable> idata_table)
{
return make_table_info_from_table(table.ptr(), idata_table);
}