Skip to content

Commit 74ab6f0

Browse files
ebrevdotensorflower-gardener
authored andcommitted
Make tf.contrib.distributions docstring generation deterministic.
Change: 137741689
1 parent 2940b6c commit 74ab6f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tensorflow/contrib/distributions/python/ops/distribution_util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,8 @@ def __init__(self, additional_note="", condition_kwargs_dict=None):
442442
self._additional_note = additional_note
443443
if condition_kwargs_dict:
444444
bullets = []
445-
for (key, value) in condition_kwargs_dict.items():
445+
for key in sorted(condition_kwargs_dict.keys()):
446+
value = condition_kwargs_dict[key]
446447
if any(x.isspace() for x in key):
447448
raise ValueError(
448449
"Parameter name \"%s\" contains whitespace." % key)

0 commit comments

Comments
 (0)