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 0e2a6fb commit 8d06ed3Copy full SHA for 8d06ed3
kernels/portable/cpu/op_constant_pad_nd.cpp
@@ -87,8 +87,8 @@ void apply_padding_to_dim(
87
ET_KERNEL_CHECK_MSG(
88
ctx,
89
out_data != self_data &&
90
- ((out_data + copy_len < self_data) ||
91
- (self_data + copy_len < out_data)),
+ ((out_data + copy_len <= self_data) ||
+ (self_data + copy_len <= out_data)),
92
InvalidArgument,
93
/* void */,
94
"Out tensor overlaps with the input tensor. This is not supported.");
0 commit comments