Commit d17de3d2 authored by Yong Tang's avatar Yong Tang Committed by Derek Murray
Browse files

Add shape validation for tag input of StatsDataset (#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: default avatarYong Tang <yong.tang.github@outlook.com>

* Add test case for tag shape check with BytesProducedStatsDataset

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Add tag shape check for LatencyStatsDataset

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Add test case for tag shape check with LatencyStatsDataset

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Fix pylint issue

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent b1f83c97
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment