From 0d11ed25e49e9dfbb45c15c1af9a5892e9146768 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Wed, 24 Jan 2018 20:13:14 -0800 Subject: Make the graph generation for TFBT deterministic. PiperOrigin-RevId: 183183086 --- tensorflow/contrib/boosted_trees/python/ops/batch_ops_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/contrib/boosted_trees/python/ops/batch_ops_utils.py b/tensorflow/contrib/boosted_trees/python/ops/batch_ops_utils.py index 23168bf493..b281a4c6d1 100644 --- a/tensorflow/contrib/boosted_trees/python/ops/batch_ops_utils.py +++ b/tensorflow/contrib/boosted_trees/python/ops/batch_ops_utils.py @@ -104,7 +104,7 @@ def run_handler_scheduled_ops(per_handler_ops, stamp, worker_device): batched_ops = collections.defaultdict(list) # Group the ops by their batching_key. Ops that share the same batching key # can be executed together. - for handler in per_handler_ops.keys(): + for handler in sorted(per_handler_ops.keys()): for op in per_handler_ops[handler]: batched_ops[(op.batching_key(), op.batch_runner_fn())].append(op) op_results = {} -- cgit v1.2.3