Skip to content

Commit

Permalink
fixed test model
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Rauber committed Oct 12, 2018
1 parent 704f4b7 commit 25b7f8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions foolbox/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def num_classes(self):
def predictions_and_gradient(self, image, label):
return 'predictions', 'gradient'

def backward(self, gradient, image):
return image

model = TestModel(bounds=(0, 1), channel_axis=1)

image = np.ones((28, 28, 1), dtype=np.float32)
Expand Down

0 comments on commit 25b7f8e

Please sign in to comment.