Call dataset cardinality op on the dataset device.
Dataset cardinality op should be placed on the same host device as the dataset, otherwise TF will try to encode/decode the dataset to another host device, which is not possible. PiperOrigin-RevId: 339942622 Change-Id: Ifbeb0aabdfc35f6c0e1248d69a8d22727e19c4a2
Showing
想要评论请 注册 或 登录