Skip to content

Commit

Permalink
Fix missing activation in conv bn leakyrelu copyattr
Browse files Browse the repository at this point in the history
  • Loading branch information
retonym committed Aug 21, 2020
1 parent 6aabcb1 commit 62db9a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow/core/grappler/optimizers/remapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ Status AddFusedConv2DNode(RemapperContext* ctx,
fused_conv2d.add_input(fused_batch_norm.input(3)); // 4: mean
fused_conv2d.add_input(fused_batch_norm.input(4)); // 5: variance

CopyConv2DAttributes(contraction, &fused_conv2d);
CopyConv2DAttributes(contraction, &fused_conv2d, &activation);
SetFusedOpAttributes(&fused_conv2d, {"FusedBatchNorm", activation.op()},
/*num_args=*/4, /*epsilon=*/matched.epsilon);

Expand Down

0 comments on commit 62db9a7

Please sign in to comment.