Fixes:GitHub Issue #38640
PiperOrigin-RevId: 308680785 Change-Id: Ic9e1d90dffacc90cd929de125e2832ce83e5d47f
This commit is contained in:
parent
5cac87ab5a
commit
3db8df8ffa
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user