Add the shark_downloader for the torch_models. #184
Merged
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.
Also, update the minilm_jit example.
The results are:
Copying gs://shark_tank/microsoft_MiniLM-L12-H384-uncased/function_name.npy...
Copying gs://shark_tank/microsoft_MiniLM-L12-H384-uncased/golden_out.npz...
Copying gs://shark_tank/microsoft_MiniLM-L12-H384-uncased/inputs.npz...
Copying gs://shark_tank/microsoft_MiniLM-L12-H384-uncased/microsoft_MiniLM-L12-H384-uncased.mlir...
Operation completed over 4 objects/254.7 MiB.
Target triple found:x86_64-linux-gnu
The obtained result via shark is: [[ 0.00985309 -0.00083516]]
The golden result is: (array([ 0.00985307, -0.00083515], dtype=float32),)
Running shark_module with random_inputs is: [[0.00674547 0.00371962]]