forked from tensorflow/tensorflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add shape validation for tag input of StatsDataset (tensorflow#18462)
* Add shape validation for tag input of StatsDataset The tag field of the StatsDataset needs to be a scalar. However, there was no check in the shape function. This fix adds the check of the tag shape. Signed-off-by: Yong Tang <[email protected]> * Add test case for tag shape check with BytesProducedStatsDataset Signed-off-by: Yong Tang <[email protected]> * Add tag shape check for LatencyStatsDataset Signed-off-by: Yong Tang <[email protected]> * Add test case for tag shape check with LatencyStatsDataset Signed-off-by: Yong Tang <[email protected]> * Fix pylint issue Signed-off-by: Yong Tang <[email protected]>
- Loading branch information
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters