Repository navigation
Adding support for [email protected] in command line tools. - #9461
Merged
Merged
Conversation
benvanik
force-pushed
the
benvanik-npy
branch
4 times, most recently
from
June 13, 2022 01:43
18b8d0f to
83c94b3
Compare
benvanik
force-pushed
the
benvanik-npy
branch
3 times, most recently
from
June 13, 2022 04:02
857e155 to
d827ed2
Compare
benvanik
marked this pull request as ready for review
June 13, 2022 14:41
ScottTodd
reviewed
Jun 13, 2022
| IREE_RETURN_IF_ERROR(iree_numpy_npy_build_dtype(buffer_view, builder)); | ||
| IREE_RETURN_IF_ERROR(iree_string_builder_append_cstring(builder, "', ")); | ||
|
|
||
| // 'fortran_order': False |
APIs roughly match the numpy.load/numpy.save API and support concatenated files. Uses stdio for now but in the future we can extend this with IREE IO APIs that allow for memory mapping and pipelined upload - if we care. Progress on #9453.
This will load 1+ ndarrays into buffer views. Progress on #9453.
ScottTodd
approved these changes
Jun 13, 2022
Collaborator
Author
|
failure looks like a flake in iree/task/executor_test - that's scary, but unrelated. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds a utility with APIs roughly match the numpy.load/numpy.save API.
Supports concatenated files as created by the numpy APIs.
Uses stdio for now but in the future we can extend this with IREE IO APIs
that allow for memory mapping and pipelined upload - if we care.
The command line tools have been extended to support loading 1+
ndarrays as function inputs when specified. These interleave with
other flags so you can specify some with inline definitions and
others from the npy files.
Progress on #9453.
vm_util needs to be rewritten and then we can also support writing npy files with function outputs.