Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 158268933
  • Loading branch information
tensorflower-gardener committed Jun 7, 2017
1 parent 4199775 commit 1d67379
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
4 changes: 3 additions & 1 deletion tensorflow/compiler/xla/service/copy_insertion.cc
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ bool InstructionCopier::HasAllIndicesFalse() const {
bool all_indices_false = true;
indices_to_copy_.ForEachElement(
[&all_indices_false](const ShapeIndex& /*index*/, bool data) {
if (data) all_indices_false = false;
if (data) {
all_indices_false = false;
}
});
return all_indices_false;
}
Expand Down
1 change: 0 additions & 1 deletion tensorflow/compiler/xla/tests/round_trip_transfer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ limitations under the License.
#include "tensorflow/compiler/xla/tests/client_library_test_base.h"
#include "tensorflow/compiler/xla/tests/literal_test_util.h"
#include "tensorflow/compiler/xla/tests/test_macros.h"
#include "tensorflow/compiler/xla/xla_data.pb.h"
#include "tensorflow/core/platform/test.h"
#include "tensorflow/core/platform/types.h"

Expand Down
1 change: 0 additions & 1 deletion tensorflow/core/framework/function_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.
#include <vector>
#include "tensorflow/core/framework/function.pb.h"
#include "tensorflow/core/framework/function_testlib.h"
#include "tensorflow/core/framework/graph.pb.h"
#include "tensorflow/core/framework/op.h"
#include "tensorflow/core/framework/tensor_testutil.h"
#include "tensorflow/core/kernels/ops_util.h"
Expand Down
4 changes: 2 additions & 2 deletions tensorflow/core/graph/graph_constructor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ bool IsValidNodeName(StringPiece s, bool allow_internal_ops) {
class GraphConstructor {
public:
struct Options {
Options(const GraphConstructorOptions& in)
Options(const GraphConstructorOptions& in) // NOLINT(runtime/explicit)
: allow_internal_ops(in.allow_internal_ops),
expect_device_spec(in.expect_device_spec),
importing(false) {}
Options(const ImportGraphDefOptions& in)
Options(const ImportGraphDefOptions& in) // NOLINT(runtime/explicit)
: allow_internal_ops(false),
expect_device_spec(false),
prefix(in.prefix.empty() || StringPiece(in.prefix).ends_with("/")
Expand Down
1 change: 0 additions & 1 deletion tensorflow/core/platform/hadoop/hadoop_file_system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ class LibHDFS {
// libhdfs.so is installed in non-standard location
status_ = TryLoadAndBind(kLibHdfsDso, &handle_);
}
return;
}

Status status_;
Expand Down

0 comments on commit 1d67379

Please sign in to comment.