Skip to content

Commit 49061a2

Browse files
Leon Gaofacebook-github-bot
authored andcommitted
add long type for jagged op. (#1214)
Summary: Pull Request resolved: #1214 as title. Reviewed By: jiaqizhai, brad-mengchi, mjanderson09 Differential Revision: D37978119 fbshipit-source-id: c2c004dfb2e1483f6fbf6a415c9dd58d95599cb0
1 parent 0551586 commit 49061a2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

fbgemm_gpu/src/jagged_tensor_ops.cu

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,8 +667,12 @@ class DenseToJaggedGPUOp
667667
at::cuda::OptionalCUDAGuard device_guard;
668668
device_guard.set_index(dense.get_device());
669669

670-
AT_DISPATCH_FLOATING_TYPES_AND_HALF(
671-
values.scalar_type(), "jagged_dense_add_forward", [&] {
670+
AT_DISPATCH_FLOATING_TYPES_AND2(
671+
at::ScalarType::Half,
672+
at::ScalarType::Long,
673+
values.scalar_type(),
674+
"jagged_dense_add_forward",
675+
[&] {
672676
jagged_dense_elementwise_jagged_output_<scalar_t>(
673677
values,
674678
offsets,

0 commit comments

Comments
 (0)