ERNIE
ERNIE copied to clipboard
ernie gen 使用ernie1.0模型embding报超限
fluid.layers.Print(emb)
Tensor[embedding_0.tmp_0]
shape: [2,60,768,]
dtype: f
data: 0.0585266,-1.94562,-0.00707711,0.0469638,0.0341952,0.0208065,0.00281218,0.0415801,0.00205135,-0.0208324,0.0759426,-0.039805,-0.0627916,0.063557,-0.000659953,- 0.0229071,-0.00485523,-0.0150948,-0.00476583,-0.0729113,
1619435593 The place is:CUDAPlace(0)
fluid.layers.Print(emb_id)
Tensor[placeholder_0]
shape: [2,60,1,]
dtype: l
data: 1,2219,157,12045,900,835,12045,462,6309,12045,340,980,92,12045,283,284,59,959,61,15,
Error: /paddle/paddle/fluid/operators/lookup_table_op.cu:43 Assertion id < N failed. Variable value (input) of OP(fluid.layers.embedding) expected >= 0 and < 2, but got 3. Please check input value.