Skip to content

Commit

Permalink
[XLA] [NFC] Remove prints from test
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 397195421
Change-Id: I0daa898f8e9fd2848eccfd43bb7719ba91bce207
  • Loading branch information
cheshire authored and tensorflower-gardener committed Sep 16, 2021
1 parent 64baf86 commit 7163b65
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tensorflow/compiler/xla/service/layout_assignment_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,6 @@ ENTRY main {

TF_ASSERT_OK_AND_ASSIGN(std::unique_ptr<HloModule> m,
ParseAndReturnVerifiedModule(module_str));
std::cerr << m->ToString();
ComputationLayout computation_layout(
m->entry_computation()->ComputeProgramShape());
*computation_layout.mutable_parameter_layout(0) =
Expand All @@ -1520,14 +1519,12 @@ ENTRY main {
ShapeLayout(ShapeUtil::MakeShapeWithLayout(F32, {93184, 4}, {0, 1}));
*computation_layout.mutable_result_layout() = ShapeLayout(
ShapeUtil::MakeShapeWithLayout(F32, {2, 512, 364}, {0, 1, 2}));
std::cerr << computation_layout.ToString();
ChannelLayoutConstraints channel_constraints;
LayoutAssignment layout_assignment(
&computation_layout,
/*channel_constraints=*/&channel_constraints,
/* reverse_computation_order = */ true);
EXPECT_IS_OK(layout_assignment.Run(m.get()).status());
std::cerr << m->ToString();
const HloInstruction* call_1 = FindInstruction(m.get(), "reshape.8494");
ExpectLayoutIs(call_1->shape(), {0, 1, 2});
const HloInstruction* on_true = FindInstruction(m.get(), "reshape.8493");
Expand Down

0 comments on commit 7163b65

Please sign in to comment.