Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sxjscience committed May 16, 2019
1 parent dd09228 commit b5a7f1e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/operator/nn/layer_norm.cu
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,6 @@ void LayerNormGradCompute<gpu>(const nnvm::NodeAttrs& attrs,
const std::vector<OpReqType>& req,
const std::vector<TBlob>& outputs) {
const LayerNormParam& param = nnvm::get<LayerNormParam>(attrs.parsed);
if (req[0] == kNullOp) return;
int axis = param.axis;
if (axis < 0) {
axis += static_cast<int>(inputs[0].ndim());
Expand Down

0 comments on commit b5a7f1e

Please sign in to comment.