Skip to content

Commit

Permalink
CallableModelWrapper can have different layer names
Browse files Browse the repository at this point in the history
  • Loading branch information
carlini committed Jul 12, 2017
1 parent 24100cb commit 9abc88f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cleverhans/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ def __init__(self, callable_fn, output_layer):
:param output_layer: A string of the output layer returned by the
function. (Usually either "probs" or "logits".)
"""
if output_layer not in ['probs', 'logits']:
error_str = 'output_layer argument of CallableModelWrapper' \
'should be the string "probs" or "logits".'
raise ValueError(error_str)

self.output_layer = output_layer
self.callable_fn = callable_fn
Expand Down

0 comments on commit 9abc88f

Please sign in to comment.