diff options
author | Mark Heffernan <meheff@google.com> | 2017-10-25 23:03:44 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-10-25 23:07:15 -0700 |
commit | 09c5bf350ac634922328bc752e9250cf24966478 (patch) | |
tree | d8ed57c08f7bfee65809fb144e796b37cc7d8050 /tensorflow/compiler/xla/service/hlo_computation.h | |
parent | 62f62bfe9f0ffba8ae406dcb1b6c0165d38fe633 (diff) |
Add support for PRED and S64 types to MakeFakeLiteral.
Don't uniquify names when creating and HLO module from a proto. This preserves instruction names across serialization/deserialization.
PiperOrigin-RevId: 173498734
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_computation.h')
-rw-r--r-- | tensorflow/compiler/xla/service/hlo_computation.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_computation.h b/tensorflow/compiler/xla/service/hlo_computation.h index 3515a6b5df..f4edd17501 100644 --- a/tensorflow/compiler/xla/service/hlo_computation.h +++ b/tensorflow/compiler/xla/service/hlo_computation.h @@ -312,8 +312,7 @@ class HloComputation { explicit HloComputation( const string& name, int parameter_count, std::vector<std::unique_ptr<HloInstruction>>* instructions, - HloInstruction* root_instruction, - HloInstruction* fusion_instruction = nullptr); + HloInstruction* root_instruction, HloInstruction* fusion_instruction); // Internal helper for adding instructions. HloInstruction* AddInstructionInternal( @@ -359,11 +358,6 @@ class HloComputation { std::vector<HloInstruction*> param_instructions_; - // Unique name generator for instruction identifiers. Instruction names should - // be unique per computation and this is enforced when instructions are added - // to the computation. - NameUniquer instruction_name_uniquer_; - TF_DISALLOW_COPY_AND_ASSIGN(HloComputation); }; |