Skip to content

Conversation

@sayantan-nervana
Copy link
Contributor

@sayantan-nervana sayantan-nervana commented Jul 25, 2019

device_id != "" might not be working. This change tries to fix that. Need to discuss if there are any other implications

@sayantan-nervana sayantan-nervana added the wip Work in progress label Jul 25, 2019
@sayantan-nervana sayantan-nervana added release candidate and removed wip Work in progress labels Jul 25, 2019
// splits into {"ngraph_backend", "_ngraph_device_config"}
config_map = BackendManager::GetBackendAttributeValues(
backend_name); // SplitBackendConfig
backend_name = config_map.at("ngraph_backend");
Copy link
Contributor Author

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>

// 1. Mark for clustering then, if requested, dump the graphs.
std::set<string> skip_these_nodes = {};
// For normal pass note that
Copy link
Contributor

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();
Copy link
Contributor

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

Copy link
Contributor

@kanvi-nervana kanvi-nervana left a 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"] = [&current_backend](Node* n,
bool* result) {
// TODO: replace current_backend ->
Copy link
Contributor

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;
Copy link
Contributor

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?

Copy link
Contributor

@shresthamalik shresthamalik left a comment

Choose a reason for hiding this comment

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

LGTM

@sayantan-nervana sayantan-nervana merged commit a10636b into master Jul 26, 2019
@sayantan-nervana sayantan-nervana deleted the sarkars/change_setnodebackend branch July 26, 2019 02:01
gopoka pushed a commit that referenced this pull request Oct 28, 2019
_ngraph_backend attribute added to TF nodes will now be backend:device_id instead of just backend.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants