call _validate() in _ParseOpParams.from_features().

PiperOrigin-RevId: 343008341
Change-Id: Iea8b5eadb7c3c9d97deb965b202b1db1b485795a
This commit is contained in:
Zhuo Peng 2020-11-17 21:30:09 -08:00 committed by TensorFlower Gardener
parent 430635d4ec
commit 0510b26aa5

View File

@ -451,6 +451,7 @@ class _ParseOpParams(object):
raise ValueError("Unsupported %s %s." %
(type(feature).__name__, feature))
params._add_feature(key, feature) # pylint: disable=protected-access
params._validate() # pylint: disable=protected-access
return params
@property