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

Benchmark convnet model tf #6

Merged
merged 9 commits into from
Dec 4, 2017
Merged

Benchmark convnet model tf #6

merged 9 commits into from
Dec 4, 2017

Conversation

jacquesqiao
Copy link
Collaborator

@jacquesqiao jacquesqiao commented Dec 4, 2017


import numpy as np
import paddle.v2 as paddle
import paddle.v2.fluid.profiler as profiler
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the TensorFlow, need to remove paddle.v2.fluid.profiler.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

with tf.control_dependencies(update_ops):
train_op = optimizer.minimize(avg_cost)

train_reader = paddle.batch(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在TF里也打算用Paddle的reader吗?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

对,tf里边用的都是Paddle的reader,这样方便对比计算的性能

@jacquesqiao jacquesqiao merged commit 1d419b2 into dzhwinter:master Dec 4, 2017
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

Successfully merging this pull request may close these issues.

write a tf model with the same network config as image classification to compare
2 participants