18 #include <type_traits>
20 #ifdef CUML_ENABLE_GPU
56 template <raft_proto::device_type D,
typename forest_t>
59 typename forest_t::io_type* output,
60 typename forest_t::io_type* input,
64 bool has_categorical_nodes,
65 typename forest_t::io_type* vector_output =
nullptr,
68 std::optional<index_type> specified_chunk_size = std::nullopt,
72 if (vector_output ==
nullptr) {
73 if (categorical_data ==
nullptr) {
74 if (!has_categorical_nodes) {
75 inference::infer<D, false, forest_t, std::nullptr_t, std::nullptr_t>(forest,
89 inference::infer<D, true, forest_t, std::nullptr_t, std::nullptr_t>(forest,
104 inference::infer<D, true, forest_t>(forest,
114 specified_chunk_size,
119 if (categorical_data ==
nullptr) {
120 if (!has_categorical_nodes) {
121 inference::infer<D, false, forest_t>(forest,
131 specified_chunk_size,
135 inference::infer<D, true, forest_t>(forest,
145 specified_chunk_size,
150 inference::infer<D, true, forest_t>(forest,
160 specified_chunk_size,
void infer(forest_t const &forest, postprocessor< typename forest_t::io_type > const &postproc, typename forest_t::io_type *output, typename forest_t::io_type *input, index_type row_count, index_type col_count, index_type output_count, bool has_categorical_nodes, typename forest_t::io_type *vector_output=nullptr, typename forest_t::node_type::index_type *categorical_data=nullptr, infer_kind infer_type=infer_kind::default_kind, std::optional< index_type > specified_chunk_size=std::nullopt, raft_proto::device_id< D > device=raft_proto::device_id< D >{}, raft_proto::cuda_stream stream=raft_proto::cuda_stream{})
Definition: infer.hpp:57
infer_kind
Definition: infer_kind.hpp:8
uint32_t index_type
Definition: index_type.hpp:9
Definition: dbscan.hpp:18
int cuda_stream
Definition: cuda_stream.hpp:14
Definition: forest.hpp:24
Definition: postprocessor.hpp:135