Skip to content

Commit dd77434

Browse files
wielandbrendeljonasrauber
authored andcommitted
removed stochastic gradients (#51)
1 parent 31d0bea commit dd77434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

foolbox/models/mxnet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def predictions_and_gradient(self, image, label):
114114
args_grad=grad_map,
115115
grad_req='write',
116116
aux_states=self._aux_map)
117-
model.forward(is_train=True)
117+
model.forward(is_train=False)
118118
logits_array = model.outputs[0]
119119
model.backward([
120120
mx.nd.zeros(logits_array.shape),

0 commit comments

Comments
 (0)