Validate the shape of TakeDataset and SkipDataset (#18267)
* Validate the shape of TakeDataset and SkipDataset The `count` inputs of the TakeDataset and SkipDataset require scalar. That was not validated before though. This fix validates the shape of count for TakeDataset and SkipDataset. Signed-off-by:Yong Tang <yong.tang.github@outlook.com> * Add test case for invalide `count` of TakeDataset Signed-off-by:
Yong Tang <yong.tang.github@outlook.com> * Validate shape of count for SkipDataset Signed-off-by:
Yong Tang <yong.tang.github@outlook.com> * Add test case for invalid count shape for SkipDataset Signed-off-by:
Yong Tang <yong.tang.github@outlook.com>
Loading
Please sign in to comment