Change GetInstructionCallContext to take an opcode instead of an
authorMark Heffernan <meheff@google.com>
Fri, 6 Apr 2018 17:28:18 +0000 (10:28 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 6 Apr 2018 17:34:28 +0000 (10:34 -0700)
commit711e2f503039bd8a277928ef8a2b3740ae2bfa4b
tree08048fd7e819aa8690c1852cc275873e80c29f51
parent5f8f0dc7998db78188c083b3c6945191145497a7
Change GetInstructionCallContext to take an opcode instead of an
HloInstruction.
This enables use of the function without an actual instruction (eg, if you just
have an HloProto).

PiperOrigin-RevId: 191905914
tensorflow/compiler/xla/service/call_graph.cc
tensorflow/compiler/xla/service/call_graph.h
tensorflow/compiler/xla/service/flatten_call_graph.cc