Skip to content

Commit

Permalink
correct valueError to TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Hong committed May 23, 2019
1 parent 61dfb9a commit 8cafbb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow/python/keras/activations.py
Expand Up @@ -307,5 +307,5 @@ def get(identifier):
elif callable(identifier):
return identifier
else:
raise ValueError('Could not interpret '
'activation function identifier:', identifier)
raise TypeError(
'Could not interpret activation function identifier: {}'.format(repr(identifier)))

0 comments on commit 8cafbb8

Please sign in to comment.