lic2020_baselines icon indicating copy to clipboard operation
lic2020_baselines copied to clipboard

Layer "model_21" expects 2 input(s), but it received 1 input tensors. Inputs received: [<tf.Tensor 'IteratorGetNext:0' shape=(None, 1, 31) dtype=int64>]

Open liandantongzi opened this issue 2 years ago • 0 comments

大佬,问个问题,这句代码 nodes = model.predict([[token_ids], [segment_ids]])[0]出现了这个bug Layer "model_21" expects 2 input(s), but it received 1 input tensors. Inputs received: [<tf.Tensor 'IteratorGetNext:0' shape=(None, 1, 31) dtype=int64>],我感觉没问题呀,输入的数据无论是数量还是格式都正确呀,可否解答一下,怎么修改。

liandantongzi avatar Apr 28 '23 10:04 liandantongzi