-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add vgg16 benchmark configuration #20
Conversation
fluid/vgg16.py
Outdated
batch_size = 1 | ||
for i in y_data.shape: | ||
batch_size = batch_size * i | ||
y_data = y_data.reshape([batch_size, 1]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
->y_data = y_data.reshape([-1, 1])
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
exe.run(inference_program, | ||
feed={"pixel": img_data, | ||
"label": y_data}, | ||
fetch_list=[avg_cost] + test_accuracy.metrics) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里可以仿照一下fluid/mnist.py,fluid/resnet.py的方式
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
因为用了dropout,此处必须用inference program
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Resolve #6605
Don't merge. The performance of ResNet and VGG16 based on fluid both seem weird in the test environment. Need to fix that first.