-
Notifications
You must be signed in to change notification settings - Fork 5.7k
add resnet profile #8674
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 resnet profile #8674
Conversation
… add-resnet-profile
python/paddle/fluid/executor.py
Outdated
@@ -240,56 +241,63 @@ def run(self, | |||
if scope is None: | |||
scope = global_scope() | |||
|
|||
program = program.clone() | |||
global_block = program.global_block() | |||
program_cache_key = str(feed.keys() + fetch_list) |
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.
Should the cache key includes a hash from the program as well? Otherwise if the program changed but the input / output is the same, we end up running a wrong 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.
yes, we are thinking about adding a version number to the program, so we can check if the program has changed.
add the profile script to benchmark repo. dzhwinter/benchmark#84 |
No description provided.