Skip to content

Commit

Permalink
Always cast the dtype for build_column
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Feb 13, 2025
1 parent d9d2ee7 commit 699bd98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/cugraph/cugraph/structure/graph_primtypes.pyx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020-2024, NVIDIA CORPORATION.
# Copyright (c) 2020-2025, NVIDIA CORPORATION.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
Expand Down Expand Up @@ -36,7 +36,7 @@ cdef move_device_buffer_to_column(
buff = DeviceBuffer.c_from_unique_ptr(move(device_buffer_unique_ptr))
buff = as_buffer(buff)
if buff.nbytes != 0:
column = cudf.core.column.build_column(buff, dtype=dtype)
column = cudf.core.column.build_column(buff, dtype=cudf.dtype(dtype))
return column
return None

Expand Down

0 comments on commit 699bd98

Please sign in to comment.