We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b98d6a7 commit 3b9b2c6Copy full SHA for 3b9b2c6
kernels/portable/cpu/op_constant_pad_nd.cpp
@@ -145,6 +145,11 @@ void constant_pad_nd_out_impl(
145
146
size_t ndim = self.dim();
147
148
+ if (ndim == 0) {
149
+ out_data[0] = self_data[0];
150
+ return;
151
+ }
152
+
153
int64_t self_sizes[kTensorDimensionLimit];
154
int64_t self_strides[kTensorDimensionLimit];
155
int64_t out_sizes[kTensorDimensionLimit];
0 commit comments