qingkongzhiqian / GPT2-Summary

基于GPT2的中文摘要生成模型

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RuntimeError: cannot reshape tensor of 0 elements into shape [-1, 0] because the unspecified dimension size -1 can be any value and is ambiguous

Fino2020 opened this issue · comments

QQ截图20220517090542
设置batchsize为1的时候会有这个问题,batchsize为2的时候非常多的轮次都是run out of memory,请问这种情况应该怎么办