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

Table Projection: Check failed: in_->ids #3854

Closed
ThomasLWang opened this issue Sep 4, 2017 · 3 comments
Closed

Table Projection: Check failed: in_->ids #3854

ThomasLWang opened this issue Sep 4, 2017 · 3 comments
Labels
User 用于标记用户问题

Comments

@ThomasLWang
Copy link

hidden_mix = mixed_layer(size=128, input=[table_projection(input=embedding)])

F0904 20:48:23.458169 22817 TableProjection.cpp:39] Check failed: in_->ids

What's this error means?

@lcy-seso
Copy link
Contributor

lcy-seso commented Sep 5, 2017

这个错误是输入数据没有使用 integer_valueinteger_value_sequence integer_value_sub_sequence 这三者之一,embedding layer 所接的data layer必须接受以上三个类型之一数据为输入。。

@lcy-seso lcy-seso added the User 用于标记用户问题 label Sep 5, 2017
@ThomasLWang
Copy link
Author

ThomasLWang commented Sep 5, 2017

  1. 这样是不是就对了?
    data = data_layer(name="opidseq", size=input_dim)
    hidden_mix = mixed_layer(size=128, input=[table_projection(input=data)])
  2. table_projection也是一种embedding layer吗?
  3. 怎么理解projection? 我看到paddle里有table projection, full matrix projection, 我在网上没找到projection的定义。

@lcy-seso
Copy link
Contributor

lcy-seso commented Sep 5, 2017

  1. 你遇到的错误是因为输入数据有误引起的,贴的代码不涉及数据读取,看不出来是不是对的。请自行进一步调试。
  2. projection 是一种轻量级layer,不能独立存在,只能作为mixed_layer 的输入。
  3. 文档就在 PaddlePaddle 的主页,http://doc.paddlepaddle.org/release_doc/0.9.0/doc/ui/api/trainer_config_helpers/layers.html#mixed-layer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User 用于标记用户问题
Projects
None yet
Development

No branches or pull requests

2 participants