Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
amarin16 committed Oct 2, 2024
1 parent 2895f37 commit f93ccb7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion onnxruntime/core/providers/cpu/nn/layer_norm_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ Status LayerNormImpl::ComputeImpl(OpKernelContext* p_ctx, int64_t orig_axis, flo
U* mean_data = nullptr;
if (!simplified) {
Tensor* mean = p_ctx->Output(output_index++, TensorShape(mean_inv_std_dev_dim));
mean_data = mean->MutableData<U>();
if (mean != nullptr) {
mean_data = mean->MutableData<U>();
}
}

U* inv_std_dev_data = nullptr;
Expand Down

0 comments on commit f93ccb7

Please sign in to comment.