Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurides committed Jul 21, 2023
1 parent 3dce829 commit aad5418
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tensorflow/core/grappler/optimizers/remapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,6 @@ bool FindConv2DWithBatchNorm(const RemapperContext& ctx, int node_index,

// FusedBatchNormV2 and V3 have an extra type parameter.
bool dtypeU_is_float = HasDataType(node_def, DT_FLOAT, "U");
bool dtypeT_is_bf16 = HasDataType(node_def, DT_BFLOAT16, "T");
if (node_view->GetOp() != "FusedBatchNorm" && !dtypeU_is_float) return false;

// Check that batch normalization is in inference mode.
Expand Down

0 comments on commit aad5418

Please sign in to comment.