Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu authored and Ubuntu committed Oct 8, 2024
1 parent ef047b7 commit e9e8cae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/core/providers/xnnpack/math/softmax.cc
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ Status Softmax::Compute(OpKernelContext* ctx) const {
const auto* X = ctx->Input<Tensor>(0);
const auto& X_shape = X->Shape();
auto* Y = ctx->Output(0, X_shape);
throw std::invalid_argument("compute");

// edge case. one or more dims with value of 0. nothing to do
if (X_shape.Size() == 0) {
return Status::OK();
Expand Down

0 comments on commit e9e8cae

Please sign in to comment.