23 #include <type_traits>
24 #ifdef CUML_ENABLE_GPU
33 namespace experimental {
65 template <raft_proto::device_type D,
typename forest_t>
68 typename forest_t::io_type* output,
69 typename forest_t::io_type* input,
73 bool has_categorical_nodes,
74 typename forest_t::io_type* vector_output =
nullptr,
77 std::optional<index_type> specified_chunk_size = std::nullopt,
81 if (vector_output ==
nullptr) {
82 if (categorical_data ==
nullptr) {
83 if (!has_categorical_nodes) {
84 inference::infer<D, false, forest_t, std::nullptr_t, std::nullptr_t>(forest,
98 inference::infer<D, true, forest_t, std::nullptr_t, std::nullptr_t>(forest,
108 specified_chunk_size,
113 inference::infer<D, true, forest_t>(forest,
123 specified_chunk_size,
128 if (categorical_data ==
nullptr) {
129 if (!has_categorical_nodes) {
130 inference::infer<D, false, forest_t>(forest,
140 specified_chunk_size,
144 inference::infer<D, true, forest_t>(forest,
154 specified_chunk_size,
159 inference::infer<D, true, forest_t>(forest,
169 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:66
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:27
int cuda_stream
Definition: cuda_stream.hpp:25
Definition: forest.hpp:34
Definition: postprocessor.hpp:137