Skip to content

Conversation

@dlibenzi
Copy link
Collaborator

…ence param" needs to be picked for device parameter.

@dlibenzi dlibenzi requested a review from asuhan February 26, 2019 16:12
…ence param" needs to be picked for device parameter.
Copy link
Contributor

@asuhan asuhan left a comment

Choose a reason for hiding this comment

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

Why not use it for copy() then?

@dlibenzi
Copy link
Collaborator Author

Why not use it for copy() then?

We can avoid going to CPU type for copy call, in that case.
Not a huge issue IMHO, but given that copy override is 5 lines of code, it's make sense to hold on that optimization.

@asuhan
Copy link
Contributor

asuhan commented Feb 26, 2019

I see. It's just an additional virtual dispatch, right? What am I missing?

@dlibenzi
Copy link
Collaborator Author

I see. It's just an additional virtual dispatch, right? What am I missing?

We have already made a copy ourselves ... going down the path will create a new one.

@dlibenzi dlibenzi merged commit a650b63 into master Feb 26, 2019
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.

3 participants