aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/util.h
diff options
context:
space:
mode:
authorGravatar Yunxing Dai <yunxing@google.com>2017-10-18 12:16:38 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-10-18 12:20:43 -0700
commitf1603b7893f922dfe64244c6bae9b93d7d594437 (patch)
treeced796e7951fa81e3bef4c900cf4079da1641fa7 /tensorflow/compiler/xla/util.h
parentef060d923acef07cd3a4b1134218abc84fcb3a7b (diff)
[XLA] Deterministically dump an executable.
Previously, dumping a executable is nondeterministic as a map in protobuf is serialized in random order. This CL enables "Deterministic dump" mode of protobuf, which sorts the map first before dumping them. This is helpful in comparing if two dumps are the same in XLA determinism test. PiperOrigin-RevId: 172637100
Diffstat (limited to 'tensorflow/compiler/xla/util.h')
-rw-r--r--tensorflow/compiler/xla/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tensorflow/compiler/xla/util.h b/tensorflow/compiler/xla/util.h
index f6c0bd1563..f58f57b443 100644
--- a/tensorflow/compiler/xla/util.h
+++ b/tensorflow/compiler/xla/util.h
@@ -24,6 +24,7 @@ limitations under the License.
#include <vector>
#include "tensorflow/compiler/xla/status.h"
+#include "tensorflow/compiler/xla/status_macros.h"
#include "tensorflow/compiler/xla/types.h"
#include "tensorflow/compiler/xla/xla_data.pb.h"
#include "tensorflow/core/lib/core/status.h"