diff options
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_evaluator.h')
-rw-r--r-- | tensorflow/compiler/xla/service/hlo_evaluator.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_evaluator.h b/tensorflow/compiler/xla/service/hlo_evaluator.h index 7557aaa248..67b6e215fc 100644 --- a/tensorflow/compiler/xla/service/hlo_evaluator.h +++ b/tensorflow/compiler/xla/service/hlo_evaluator.h @@ -39,18 +39,16 @@ class HloEvaluator : public DfsHloVisitorWithDefault { HloEvaluator(); // Evaluates an HLO module and an array of pointers to literals. // Returns the evaluated result as a literal if successful. - // Precondition: The indices of arg_literals correspond to the parameter - // numbers of the HLO parameters in the computation. See comment below for an - // example. + // Precondition: argument literals correspond to each input computation's + // parameters in their post-ordering. See comment below for example. StatusOr<std::unique_ptr<Literal>> Evaluate( const HloModule& module, tensorflow::gtl::ArraySlice<const Literal*> arg_literals); // Evaluates an HLO computation and an array of pointers to literals. // Returns the evaluated result as a literal if successful. - // Precondition: The indices of arg_literals correspond to the parameter - // numbers of the HLO parameters in the computation. For e.g., consider the - // following graph: + // Precondition: argument literals correspond to the input computation's + // parameters in their post-ordering. For e.g., consider the following graph: // // * // / \ @@ -59,9 +57,8 @@ class HloEvaluator : public DfsHloVisitorWithDefault { // / \ // Parameter0 Constant // - // where Parameter0 has parameter_number 0 and Parameter1 has parameter_number - // 1 in this computation. The input literals array will then have its first - // literal map to Parameter0 and the second map to Parameter1. + // The input literals array will have its first literal map to Parameter0 and + // the second map to Parameter1. StatusOr<std::unique_ptr<Literal>> Evaluate( const HloComputation& computation, tensorflow::gtl::ArraySlice<const Literal*> arg_literals); |