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

Fluid new API not working for fit_a_line in book #10426

Closed
daming-lu opened this issue May 5, 2018 · 1 comment
Closed

Fluid new API not working for fit_a_line in book #10426

daming-lu opened this issue May 5, 2018 · 1 comment
Assignees

Comments

@daming-lu
Copy link
Contributor

daming-lu commented May 5, 2018

https://github.com/PaddlePaddle/Paddle/pull/10301/files

As of now, trainer.train() has been implemented. So I tried to train fit_a_line using the new API and infer using the old one in the hope that the old and the new are compatible. But I got the error like below:

screen shot 2018-05-04 at 6 04 16 pm

Even after I changed the reader from

train_reader = paddle.batch( paddle.reader.shuffle( paddle.dataset.uci_housing.train(), buf_size=500), batch_size=BATCH_SIZE)

to

train_reader = paddle.reader.shuffle( paddle.dataset.uci_housing.train(), buf_size=500)

it still did not work. Any hint? Thanks 😀

@daming-lu
Copy link
Contributor Author

feed_order is required now.

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