Edit by browser

This commit is contained in:
夏军 2020-07-21 22:39:28 +08:00
parent d52df50055
commit 1670edd027
1 changed files with 10 additions and 12 deletions

View File

@ -6,8 +6,6 @@ def data_pre_handle(data):
# 2. 分组每3个分为一组末尾不足一组的砍掉
# 3. 重复将数据重复3次
########## Begin ##########
map_res = data.map(operations=multi_func)
batch_res = map_res.batch(batch_size=3, drop_remainder=True)
repeat_res = batch_res.repeat(3)
return repeat_res
########## end ##########