Skip to content

Conversation

@jacquesqiao
Copy link
Member

@jacquesqiao jacquesqiao commented Sep 19, 2017

fix #4203

platform::Place GetPlace() const { return device_context_.GetPlace(); }

template <typename PlaceType>
platform::Place GetPlace() const {
Copy link
Contributor

Choose a reason for hiding this comment

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

As #3902 , maybe we can keep the style and rename the function name to Place(), so we can use it as:

ctx.Place<PlaceType>();

@jacquesqiao jacquesqiao closed this Dec 6, 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.

Need an interface to get Place instance

2 participants