Skip to content

Commit 0744f2f

Browse files
committed
Bucketize: check input and output dim order match
1 parent afb0d90 commit 0744f2f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

kernels/portable/cpu/op_bucketize.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ Tensor& bucketize_tensor_out(
176176
out);
177177
ET_KERNEL_CHECK(
178178
context, tensors_have_same_shape(self, out), InvalidArgument, out);
179+
ET_KERNEL_CHECK(
180+
context, tensors_have_same_dim_order(self, out), InvalidArgument, out);
179181
ET_KERNEL_CHECK(
180182
context, tensor_is_realhbf16_type(self), InvalidArgument, out);
181183

0 commit comments

Comments
 (0)