diff options
author | Eric Liu <ioeric@google.com> | 2017-05-30 11:01:19 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-05-30 11:07:53 -0700 |
commit | 34a29fc3b216b5dbcc0a36b76f54bd29e0f7d433 (patch) | |
tree | 8e5988f28c35fa73c3eece9efd7e05b9e49bd6ab /tensorflow/core/grappler/costs/op_level_cost_estimator.h | |
parent | 092a7b6e65c72adedb9602137c0560945e6ca7f9 (diff) |
[TF:XLA] preserve metadata when replacing HLO instructions.
The motivation is to add metadata for HLO instructions that are created to replace existing HLO instructions during optimizations. The assumption is that the old instruction and the new instruction would perform the same function, and that they would be correlated to the same TF op. This might not always be correct since HLO optimizations can cross TF op boundaries. But still this seems to be better than nothing.
Note that this still doesn't fully resolve missing OpMetadata after HLO optimizations; new instructions might be added without using ReplaceInstruction.
PiperOrigin-RevId: 157484394
Diffstat (limited to 'tensorflow/core/grappler/costs/op_level_cost_estimator.h')
0 files changed, 0 insertions, 0 deletions