aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/tests/test_utils.cc
diff options
context:
space:
mode:
authorGravatar Michael Kuperstein <mkuper@google.com>2018-02-16 18:13:53 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-02-16 18:17:31 -0800
commit090bb9168cbcb5bbb3d7fb8e0b64f7d00013d188 (patch)
tree0ab953b0f33b7883db614206005b593ef1edcc32 /tensorflow/compiler/xla/tests/test_utils.cc
parenta189502cc3032f0bc8f3294b0e39062e89fe9181 (diff)
[XLA] Pass the module to HloDataflowAnalysis by const reference.
PiperOrigin-RevId: 186072673
Diffstat (limited to 'tensorflow/compiler/xla/tests/test_utils.cc')
-rw-r--r--tensorflow/compiler/xla/tests/test_utils.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/tests/test_utils.cc b/tensorflow/compiler/xla/tests/test_utils.cc
index b060fb13b1..0bc7df2a65 100644
--- a/tensorflow/compiler/xla/tests/test_utils.cc
+++ b/tensorflow/compiler/xla/tests/test_utils.cc
@@ -287,7 +287,7 @@ StatusOr<std::unique_ptr<Literal>> MakeFakeLiteral(const Shape& shape) {
StatusOr<std::vector<std::unique_ptr<Literal>>> MakeFakeArguments(
HloModule* const module) {
- TF_ASSIGN_OR_RETURN(auto dataflow, HloDataflowAnalysis::Run(module));
+ TF_ASSIGN_OR_RETURN(auto dataflow, HloDataflowAnalysis::Run(*module));
const auto params = module->entry_computation()->parameter_instructions();
std::minstd_rand0 engine;
std::vector<std::unique_ptr<Literal>> arguments(params.size());