Skip to content

Commit

Permalink
Minor fixes for issues found in static scans
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavani-subramanian committed Jul 13, 2023
1 parent fe01661 commit 96ec13c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tensorflow/core/grappler/optimizers/remapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3442,7 +3442,7 @@ Status AddBatchNormNodes(RemapperContext* ctx, const FusedBatchNorm& matched) {
a.set_device(fused_node.device());
(*a.mutable_attr())["T"].set_type(dtype);
*a.add_input() = std::move(x);
*a.add_input() = std::move(scaled_name);
*a.add_input() = scaled_name;
mutation->AddNode(std::move(a), &status);
TF_RETURN_IF_ERROR(status);

Expand Down
2 changes: 1 addition & 1 deletion tensorflow/core/kernels/mkl/mkl_conv_ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class MklDnnConvUtil {
filter_sizes[MklDnnDims3D::Dim3d_D] = filter_planes;
filter_sizes[MklDnnDims3D::Dim3d_H] = filter_rows;
filter_sizes[MklDnnDims3D::Dim3d_W] = filter_cols;
*filter_dims = filter_sizes;
*filter_dims = std::move(filter_sizes);
}
}

Expand Down

0 comments on commit 96ec13c

Please sign in to comment.