Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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>] #9

Open
liandantongzi opened this issue Apr 28, 2023 · 0 comments

Comments

@liandantongzi
Copy link

大佬,问个问题,这句代码 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>],我感觉没问题呀,输入的数据无论是数量还是格式都正确呀,可否解答一下,怎么修改。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant