Commit 01512356 authored by Michael Kuperstein's avatar Michael Kuperstein Committed by TensorFlower Gardener
Browse files

[XLA] Don't use NumUniqueInstructionIds() as a proxy for instruction_count()

It used to be a reasonable proxy, but that's no longer the case. This is because GetUniqueId() in XlaBuilder uses a *global* (rather than a module-global) counter. Since HloModule::CreateFromProto no-longer uniquifies ids coming in from protos, the potentially very high IDs coming from GetUniqueId() become the module's next_unique_id.

There is another case of this in TuplePointsTo, that will be handled separately.

PiperOrigin-RevId: 214614576
parent e9f76594
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment