遍历dataset的方法

1,dataset的方法

Dataset.make_one_shot_iterator() or get_next()

2,使用python的方法-当eager mode enabled时

print('Elements of ds_tensors:')
for x in ds_tensors:
print(x)

print(' Elements in ds_file:')
for x in ds_file:
print(x)

原文地址:https://www.cnblogs.com/augustone/p/10506955.html