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

关于dataprovider yield数据名称的问题 #1125

Closed
HugoLian opened this issue Jan 11, 2017 · 1 comment
Closed

关于dataprovider yield数据名称的问题 #1125

HugoLian opened this issue Jan 11, 2017 · 1 comment

Comments

@HugoLian
Copy link

HugoLian commented Jan 11, 2017

在dataprovider中,如果按顺序yield三个vector, 如:
yield word_vector, tag_vector, label
训练没有问题。
有人说最好加个名字,和data_layer的name对应上,于是写成:
yield {'input_word':word_vector, 'input_tag':tag_vector, 'label':label}
这样训练的时候初始化参数会抛出错误:
Check failed: PySequence_Check(seq_)

我用的paddle是昨天下载的一件编译版本,难道是版本问题,不支持这种写法么?
#1114 这个是报错的那个ISSUE

@livc
Copy link
Member

livc commented Jul 18, 2017

yield的字段需要seqence类型,可以参考 #2622

@livc livc closed this as completed Jul 18, 2017
wangxicoding pushed a commit to wangxicoding/Paddle that referenced this issue Dec 9, 2021
lizexu123 pushed a commit to lizexu123/Paddle that referenced this issue Feb 23, 2024
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

2 participants