Loading [MathJax]/extensions/tex2jax.js
Go to the documentation of this file.
32 #define CUML_FIL_SCALAR_LOCAL_ARGS(dev, variant_index) \
33 (CUML_FIL_FOREST(variant_index) const&, \
34 postprocessor<CUML_FIL_SPEC(variant_index)::threshold_type> const&, \
35 CUML_FIL_SPEC(variant_index)::threshold_type*, \
36 CUML_FIL_SPEC(variant_index)::threshold_type*, \
43 std::optional<index_type>, \
44 raft_proto::device_id<dev>, \
45 raft_proto::cuda_stream stream)
49 #define CUML_FIL_VECTOR_LOCAL_ARGS(dev, variant_index) \
50 (CUML_FIL_FOREST(variant_index) const&, \
51 postprocessor<CUML_FIL_SPEC(variant_index)::threshold_type> const&, \
52 CUML_FIL_SPEC(variant_index)::threshold_type*, \
53 CUML_FIL_SPEC(variant_index)::threshold_type*, \
57 CUML_FIL_SPEC(variant_index)::threshold_type*, \
60 std::optional<index_type>, \
61 raft_proto::device_id<dev>, \
62 raft_proto::cuda_stream stream)
66 #define CUML_FIL_SCALAR_NONLOCAL_ARGS(dev, variant_index) \
67 (CUML_FIL_FOREST(variant_index) const&, \
68 postprocessor<CUML_FIL_SPEC(variant_index)::threshold_type> const&, \
69 CUML_FIL_SPEC(variant_index)::threshold_type*, \
70 CUML_FIL_SPEC(variant_index)::threshold_type*, \
75 CUML_FIL_SPEC(variant_index)::index_type*, \
77 std::optional<index_type>, \
78 raft_proto::device_id<dev>, \
79 raft_proto::cuda_stream stream)
83 #define CUML_FIL_VECTOR_NONLOCAL_ARGS(dev, variant_index) \
84 (CUML_FIL_FOREST(variant_index) const&, \
85 postprocessor<CUML_FIL_SPEC(variant_index)::threshold_type> const&, \
86 CUML_FIL_SPEC(variant_index)::threshold_type*, \
87 CUML_FIL_SPEC(variant_index)::threshold_type*, \
91 CUML_FIL_SPEC(variant_index)::threshold_type*, \
92 CUML_FIL_SPEC(variant_index)::index_type*, \
94 std::optional<index_type>, \
95 raft_proto::device_id<dev>, \
96 raft_proto::cuda_stream stream)
100 #define CUML_FIL_INFER_TEMPLATE(template_type, dev, variant_index, categorical) \
101 template_type void infer<dev, categorical, CUML_FIL_FOREST(variant_index)>
106 #define CUML_FIL_INFER_DEV_SCALAR_LEAF_NO_CAT(template_type, dev, variant_index) \
107 CUML_FIL_INFER_TEMPLATE(template_type, dev, variant_index, false) \
108 CUML_FIL_SCALAR_LOCAL_ARGS(dev, variant_index);
113 #define CUML_FIL_INFER_DEV_SCALAR_LEAF_LOCAL_CAT(template_type, dev, variant_index) \
114 CUML_FIL_INFER_TEMPLATE(template_type, dev, variant_index, true) \
115 CUML_FIL_SCALAR_LOCAL_ARGS(dev, variant_index);
120 #define CUML_FIL_INFER_DEV_SCALAR_LEAF_NONLOCAL_CAT(template_type, dev, variant_index) \
121 CUML_FIL_INFER_TEMPLATE(template_type, dev, variant_index, true) \
122 CUML_FIL_SCALAR_NONLOCAL_ARGS(dev, variant_index);
127 #define CUML_FIL_INFER_DEV_VECTOR_LEAF_NO_CAT(template_type, dev, variant_index) \
128 CUML_FIL_INFER_TEMPLATE(template_type, dev, variant_index, false) \
129 CUML_FIL_VECTOR_LOCAL_ARGS(dev, variant_index);
134 #define CUML_FIL_INFER_DEV_VECTOR_LEAF_LOCAL_CAT(template_type, dev, variant_index) \
135 CUML_FIL_INFER_TEMPLATE(template_type, dev, variant_index, true) \
136 CUML_FIL_VECTOR_LOCAL_ARGS(dev, variant_index);
141 #define CUML_FIL_INFER_DEV_VECTOR_LEAF_NONLOCAL_CAT(template_type, dev, variant_index) \
142 CUML_FIL_INFER_TEMPLATE(template_type, dev, variant_index, true) \
143 CUML_FIL_VECTOR_NONLOCAL_ARGS(dev, variant_index);
147 #define CUML_FIL_INFER_ALL(template_type, dev, variant_index) \
148 CUML_FIL_INFER_DEV_SCALAR_LEAF_NO_CAT(template_type, dev, variant_index) \
149 CUML_FIL_INFER_DEV_SCALAR_LEAF_LOCAL_CAT(template_type, dev, variant_index) \
150 CUML_FIL_INFER_DEV_SCALAR_LEAF_NONLOCAL_CAT(template_type, dev, variant_index) \
151 CUML_FIL_INFER_DEV_VECTOR_LEAF_NO_CAT(template_type, dev, variant_index) \
152 CUML_FIL_INFER_DEV_VECTOR_LEAF_LOCAL_CAT(template_type, dev, variant_index) \
153 CUML_FIL_INFER_DEV_VECTOR_LEAF_NONLOCAL_CAT(template_type, dev, variant_index)