Attempt at progressively feeding the Session to bypass type checking in #69
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.
@marshallpierce I would love some feedback about this approach for differently typed tensors for inputs.
Just as a reminder,the inputs of the graph I have contain differently shaped and differently typed arrays
(input_ids, i64, [x, y]) , (past_key_values, f32, (x, y, z, m))
The session starts keeping the pointers, which means I have to leak the pointer from the
feed
function, and drop them after running the session.The good thing with this approach is that
run
can keep backward compatibility and still enable more advanced usages (and no super complex types and extractions.