Skip to content

Commit

Permalink
Fix test:
Browse files Browse the repository at this point in the history
Call instruction was added to builder instead of call_builder. Triggers the assertion in MakeInstructionPostOrder when dumping out the module.

PiperOrigin-RevId: 173464579
  • Loading branch information
alinas authored and tensorflower-gardener committed Oct 25, 2017
1 parent 5cd1ba5 commit 7efbfc2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2127,7 +2127,7 @@ TEST_F(AlgebraicSimplifierTest, IteratorInvalidation) {
HloInstruction::CreateConstant(Literal::CreateR1<float>({0.0f})));
HloInstruction* one = call_builder.AddInstruction(
HloInstruction::CreateConstant(Literal::CreateR1<float>({1.0f})));
builder.AddInstruction(
call_builder.AddInstruction(
HloInstruction::CreateCall(r1f32, {zero, one}, dot_computation.get()));

auto module = CreateNewModule();
Expand Down

0 comments on commit 7efbfc2

Please sign in to comment.