Fixes:GitHub Issue #38640

PiperOrigin-RevId: 308680785
Change-Id: Ic9e1d90dffacc90cd929de125e2832ce83e5d47f
This commit is contained in:
A. Unique TensorFlower 2020-04-27 12:58:38 -07:00 committed by TensorFlower Gardener
parent 5cac87ab5a
commit 3db8df8ffa

View File

@ -349,6 +349,9 @@ class ReLU(Layer):
if negative_slope < 0.:
raise ValueError('negative_slope of Relu layer '
'cannot be negative value: ' + str(negative_slope))
if threshold is None:
raise ValueError('threshold of Relu layer '
'cannot be None. Required a float')
self.support_masking = True
if max_value is not None: