From 8cafbb8b3103e14df0b5a6ba6ac0a5586f8c47aa Mon Sep 17 00:00:00 2001 From: I-Hong Date: Wed, 22 May 2019 17:38:54 -0700 Subject: [PATCH] correct valueError to TypeError --- tensorflow/python/keras/activations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tensorflow/python/keras/activations.py b/tensorflow/python/keras/activations.py index 5f7ade6ea49e3a..a28e2244f5e9db 100644 --- a/tensorflow/python/keras/activations.py +++ b/tensorflow/python/keras/activations.py @@ -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)))