We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31dabcd commit abe2f02Copy full SHA for abe2f02
tests/infer/test_enum.py
@@ -186,7 +186,7 @@ def finite_difference(eval_loss, delta=0.1):
186
params = pyro.get_param_store().get_all_param_names()
187
assert params, "no params found"
188
grads = {name: Variable(torch.zeros(pyro.param(name).size())) for name in params}
189
- for name in params:
+ for name in sorted(params):
190
value = pyro.param(name).data
191
for index in itertools.product(*map(range, value.size())):
192
center = value[index]
0 commit comments