29 #include <type_traits> 
   31 #ifdef CUML_ENABLE_GPU 
   67 template <raft_proto::device_type D, 
typename forest_t>
 
   70            typename forest_t::io_type* output,
 
   71            typename forest_t::io_type* input,
 
   75            bool has_categorical_nodes,
 
   76            typename forest_t::io_type* vector_output                  = 
nullptr,
 
   79            std::optional<index_type> specified_chunk_size             = std::nullopt,
 
   83   if (vector_output == 
nullptr) {
 
   84     if (categorical_data == 
nullptr) {
 
   85       if (!has_categorical_nodes) {
 
   86         inference::infer<D, false, forest_t, std::nullptr_t, std::nullptr_t>(forest,
 
  100         inference::infer<D, true, forest_t, std::nullptr_t, std::nullptr_t>(forest,
 
  110                                                                             specified_chunk_size,
 
  115       inference::infer<D, true, forest_t>(forest,
 
  125                                           specified_chunk_size,
 
  130     if (categorical_data == 
nullptr) {
 
  131       if (!has_categorical_nodes) {
 
  132         inference::infer<D, false, forest_t>(forest,
 
  142                                              specified_chunk_size,
 
  146         inference::infer<D, true, forest_t>(forest,
 
  156                                             specified_chunk_size,
 
  161       inference::infer<D, true, forest_t>(forest,
 
  171                                           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:68
 
infer_kind
Definition: infer_kind.hpp:19
 
uint32_t index_type
Definition: index_type.hpp:20
 
Definition: dbscan.hpp:29
 
int cuda_stream
Definition: cuda_stream.hpp:25
 
Definition: forest.hpp:35
 
Definition: postprocessor.hpp:140