29 #include <type_traits>
31 #ifdef CUML_ENABLE_GPU
36 namespace experimental {
68 template <raft_proto::device_type D,
typename forest_t>
71 typename forest_t::io_type* output,
72 typename forest_t::io_type* input,
76 bool has_categorical_nodes,
77 typename forest_t::io_type* vector_output =
nullptr,
80 std::optional<index_type> specified_chunk_size = std::nullopt,
84 if (vector_output ==
nullptr) {
85 if (categorical_data ==
nullptr) {
86 if (!has_categorical_nodes) {
87 inference::infer<D, false, forest_t, std::nullptr_t, std::nullptr_t>(forest,
101 inference::infer<D, true, forest_t, std::nullptr_t, std::nullptr_t>(forest,
111 specified_chunk_size,
116 inference::infer<D, true, forest_t>(forest,
126 specified_chunk_size,
131 if (categorical_data ==
nullptr) {
132 if (!has_categorical_nodes) {
133 inference::infer<D, false, forest_t>(forest,
143 specified_chunk_size,
147 inference::infer<D, true, forest_t>(forest,
157 specified_chunk_size,
162 inference::infer<D, true, forest_t>(forest,
172 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:69
uint32_t index_type
Definition: index_type.hpp:21
infer_kind
Definition: infer_kind.hpp:20
forest< real_t > * forest_t
Definition: fil.h:89
Definition: dbscan.hpp:30
int cuda_stream
Definition: cuda_stream.hpp:25
Definition: forest.hpp:36
Definition: postprocessor.hpp:141