-
Notifications
You must be signed in to change notification settings - Fork 63
sarkars/Possible fix for backend settings #159
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
Conversation
| // splits into {"ngraph_backend", "_ngraph_device_config"} | ||
| config_map = BackendManager::GetBackendAttributeValues( | ||
| backend_name); // SplitBackendConfig | ||
| backend_name = config_map.at("ngraph_backend"); |
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.
removing this line so that in MarkForClustering we pass GPU:0 instead of GPU
Co-Authored-By: kanvi-nervana <kanvi.khanna@intel.com>
ngraph_bridge/ngraph_rewrite_pass.cc
Outdated
|
|
||
| // 1. Mark for clustering then, if requested, dump the graphs. | ||
| std::set<string> skip_these_nodes = {}; | ||
| // For normal pass note that |
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.
Is there more to this comment?
| } | ||
| } | ||
| config_backend_name = params.at("ngraph_backend").s(); | ||
| device_id = params.at("device_id").s(); |
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.
May be change this to config_device_id to make it consistent with config_backend_name
…nsorflow/ngraph-bridge into sarkars/change_setnodebackend
kanvi-nervana
left a comment
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.
Minor comment about a comment, otherwise LGTM
| // backend dependent, which might change with different sess.run()s | ||
| confirmation_function_map["GatherV2"] = [¤t_backend](Node* n, | ||
| bool* result) { | ||
| // TODO: replace current_backend -> |
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.
Is this comment still valid?
| << backend_creation_string; | ||
| } | ||
| NGRAPH_VLOG(0) << "NGraph using backend: " << backend_name; | ||
| NGRAPH_VLOG(0) << "NGraph using backend: " << config_backend_name; |
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 this log print the backend_name or the backend_creation_string?
shresthamalik
left a comment
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
_ngraph_backend attribute added to TF nodes will now be backend:device_id instead of just backend.
device_id != ""might not be working. This change tries to fix that. Need to discuss if there are any other implications