diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2018-07-20 13:50:37 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-07-20 13:53:55 -0700 |
commit | e542062aa1613dc01b82b6378675563160fe0abf (patch) | |
tree | 15ce2b045f53f2f610a563e8d0091d96d2db2f4c /tensorflow/compiler/xla/service/hlo_instruction.h | |
parent | 265292420de30f24805d28886d403dc42d3685b3 (diff) |
Start implementation of Iota HLO.
PiperOrigin-RevId: 205447892
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_instruction.h')
-rw-r--r-- | tensorflow/compiler/xla/service/hlo_instruction.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_instruction.h b/tensorflow/compiler/xla/service/hlo_instruction.h index c6faa69a78..30bff286c2 100644 --- a/tensorflow/compiler/xla/service/hlo_instruction.h +++ b/tensorflow/compiler/xla/service/hlo_instruction.h @@ -346,6 +346,9 @@ class HloInstruction { static std::unique_ptr<HloInstruction> CreateConstant( std::unique_ptr<Literal> literal); + // Creates an Iota instruction. + static std::unique_ptr<HloInstruction> CreateIota(const Shape& shape); + // Creates a get tuple element instruction. static std::unique_ptr<HloInstruction> CreateGetTupleElement( const Shape& shape, HloInstruction* operand, int64 index); |