forked from neo-ai/tvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RUNTIME] NDArray CopyFrom/To Bytes always synchronize (apache#6586)
* [RUNTIME] NDArray CopyFrom/To Bytes always synchronize The previous behavior of non-sync can be unsafe for GPU devices. In particular, the need for an explicit synchronization could leads to confusion behavior e.g. asnumpy does not immediately return the right content for vulkan. Also brings the requirement of array being contiguous. Right now we encourage compact array since they are easier for optimization. We can consider bring support later by introducing a compactify PackedFunc(which might need be jitted).
- Loading branch information
Showing
2 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters