label_bins.hpp
转到此文件的文档。
1 /*
2  * 版权所有 (c) 2021-2024, NVIDIA CORPORATION.
3  *
4  * 根据 Apache 许可证 2.0 版本(“许可证”)获得许可;
5  * 除非遵守许可证,否则您不得使用此文件。
6  * 您可以在以下位置获取许可证副本:
7  *
8  * https://apache.ac.cn/licenses/LICENSE-2.0
9  *
10  * 除非适用法律要求或书面同意,根据许可证分发的软件按“原样”分发,
11  * 没有任何形式的明示或暗示担保或条件。
12  * 请参阅许可证以了解特定语言的许可权限和限制。
13  * limitations under the License.
14  *
15  */
16 
17 #pragma once
18 
19 #include <cudf/column/column.hpp>
21 #include <cudf/types.hpp>
23 
25 
26 namespace CUDF_EXPORT cudf {
27 
38 enum class inclusive { YES, NO };
39 
71 std::unique_ptr<column> label_bins(
72  column_view const& input,
73  column_view const& left_edges,
74  inclusive left_inclusive,
75  column_view const& right_edges,
76  inclusive right_inclusive,
79  // end of group
81 } // namespace CUDF_EXPORT cudf
设备数据的非拥有、不可变视图,表示为元素列,其中某些元素可能为空,如索引...
cudf::column 的类定义。
列视图类定义
rmm::cuda_stream_view const get_default_stream()
获取当前默认流。
inclusive
用于定义 bin 是否包含其边界点的枚举。
std::unique_ptr< column > label_bins(column_view const &input, column_view const &left_edges, inclusive left_inclusive, column_view const &right_edges, inclusive right_inclusive, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
根据元素在指定 bin 中的归属对元素进行标注。
rmm::device_async_resource_ref get_current_device_resource_ref()
获取当前设备内存资源引用。
cuda::mr::async_resource_ref< cuda::mr::device_accessible > device_async_resource_ref
cuDF 接口
定义: host_udf.hpp:37
libcudf 的类型声明。