Skip to content

Commit

Permalink
fix the CUDNN_BN_MIN_EPSILON difference issue between cudnn7.3 and cu…
Browse files Browse the repository at this point in the history
…dnn7.6 (#2680)
  • Loading branch information
yufenglee authored Dec 17, 2019
1 parent 82d35de commit c33dab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/contrib_ops/cuda/layer_norm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ LayerNorm<T, U>::LayerNorm(const OpKernelInfo& op_kernel_info) : CudaKernel(op_k
ORT_ENFORCE(op_kernel_info.GetAttr("axis", &axis_).IsOK());
float tmp_epsilon;
ORT_ENFORCE(op_kernel_info.GetAttr<float>("epsilon", &tmp_epsilon).IsOK());
epsilon_ = ClampCudnnBatchNormEpsilon(tmp_epsilon);
epsilon_ = tmp_epsilon;
}

template <typename T, typename U>
Expand Down

0 comments on commit c33dab3

Please sign in to comment.