diff options
author | 2018-09-25 10:14:53 -0700 | |
---|---|---|
committer | 2018-09-25 10:18:50 -0700 | |
commit | faee2023f9764de44a804c3208be6f68dac04917 (patch) | |
tree | cde9610e0649cf68f0fc39f9f5104b478b550541 /SECURITY.md | |
parent | 954d6a0ace9b96cdd54659b99e9378a1138a7266 (diff) |
[XLA] Make HloComputation::instruction_count() constant-time.
* Use a FlatMap for instruction_iterators_, and actually remove elements from it (which is cheap for a FlatMap).
* Use the size of the map (which is O(1)) rather than the size of the list (which is O(n)) for instruction_count().
PiperOrigin-RevId: 214459259
Diffstat (limited to 'SECURITY.md')
0 files changed, 0 insertions, 0 deletions