遍历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('\nElements in ds_file:')
for x in ds_file:
print(x)
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('\nElements in ds_file:')
for x in ds_file:
print(x)