-
How to convert |
Beta Was this translation helpful? Give feedback.
Answered by
3togo
Oct 21, 2022
Replies: 1 comment 2 replies
-
fn to_vec<T:HasAfEnum+Default+Clone>(array:&Array) -> Vec { After calling function host, will vec still in gpu memory? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
9prady9
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fn to_vec<T:HasAfEnum+Default+Clone>(array:&Array) -> Vec {
let mut vec = vec!(T::default();array.elements());
array.host(&mut vec);
return vec;
}
After calling function host, will vec still in gpu memory?