The spec of `to_device()` method is missing
See original GitHub issueHere we mentioned there’s a to_device()
method to enable data copy/movement across devices:
https://github.com/data-apis/array-api/blob/09410675703ee275e6e5746db3aded0d37bc4b96/spec/design_topics/device_support.md#L48-L49
But we haven’t defined the signature and semantics yet.
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
System.MissingMethodException: Method not found?
The DoThis method is on the same class and it should work. I have a generic handler as such: public class MyHandler: IHttpHandler...
Read more >"Windows cannot access the specified device, path, or file ...
Method 1: Check the permission of the file or folder · Right-click the file or folder, and then select Properties. · Select the...
Read more >How to Fix the System Cannot Find the File Specified - EaseUS
If files are missing or not showing up, move to the following tutorial to recover data from your storage device using reliable data...
Read more >[Solved] PCI Data Acquisition and Signal Processing ...
PCI Data Acquisition and Signal Processing Controller Missing on Windows 11/10 · 1) Go to the support website and then locate the appropriate ......
Read more >device_info_plus | Flutter Package - Pub.dev
The plugin provides a data method that returns platform-specific device information in a generic way, which can be used for crash-reporting purposes. However, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Technically a
Union
is not the correct type here, as (with protocol arguments being contravariant) that would imply concrete implementation must, at minimum, have support for all union members. Instead, withint
- and_Stream
-support being optional, you’re in a similar situation to builtin protocols such as__abs__
, wherein one of the types is a (somewhat constrained) free variable. Expressing the latter can be done with a typevar (e.g.~T
or~StreamType
), though arguably they don’t look quite as nice as unions.Examples
Actually, let me ask a question about
stream
here: is using the DLPack-like integer the right choice here? I think libraries will either have no support for streams, or have custom objects. For DLPack there was little choice, because a custom class instance cannot work. However intra-library it could, similar to howDevice
itself works, or the dtype objects. Seems like that would be more natural.