[WASI-NN] Add support for a PyTorch backend for wasi-nn (#9234)* Add pytorch backend, tests, examples* Update cargo.lock file with tch dependencies prtest:full* document set_input parameters us
[WASI-NN] Add support for a PyTorch backend for wasi-nn (#9234)* Add pytorch backend, tests, examples* Update cargo.lock file with tch dependencies prtest:full* document set_input parameters usage* vet: exempt all crates with 10K+ daily downloadsAs described in the [contribution guidelines], Wasmtime will exemptdependencies from vetting that receive at least 10,000 downloads a day.This substantially reduces the burden for vetting this PR, so I'vetallied up daily downloads (across all versions) for the crates in thisPR, listed below. This change then exempts the new dependencies thatmeet the 10K+ criteria.[contribution guidelines]: https://docs.wasmtime.dev/contributing-coding-guidelines.html#policy-for-adding-cargo-vet-entries```> aes2024-10-02 1117342024-10-03 1073242024-10-04 1042992024-10-05 323972024-10-06 295072024-10-07 1233682024-10-08 125732> base64ct2024-10-02 1798482024-10-03 1579382024-10-04 1494952024-10-05 481182024-10-06 433892024-10-07 1832542024-10-08 175378> bzip22024-10-02 893092024-10-03 851122024-10-04 765732024-10-05 271522024-10-06 241242024-10-07 902282024-10-08 93314> bzip2-sys2024-10-02 1096642024-10-03 1026772024-10-04 944852024-10-05 331962024-10-06 284172024-10-07 1101952024-10-08 110951> cipher2024-10-02 11192024-10-03 3772024-10-04 2702024-10-05 1782024-10-06 2712024-10-07 21052024-10-08 1777> constant_time_eq2024-10-02 1374622024-10-03 1263002024-10-04 1219272024-10-05 1691562024-10-06 1395592024-10-07 3045292024-10-08 246533> crunchy2024-10-02 1978322024-10-03 1765862024-10-04 1720532024-10-05 1878752024-10-06 1536472024-10-07 3592402024-10-08 304777> deranged2024-10-02 3196912024-10-03 2852982024-10-04 2677602024-10-05 1045372024-10-06 923062024-10-07 3098312024-10-08 308869> digest2024-10-02 21282024-10-03 13352024-10-04 14742024-10-05 5942024-10-06 7262024-10-07 30792024-10-08 2855> half2024-10-02 1615252024-10-03 1440132024-10-04 1372962024-10-05 492462024-10-06 424372024-10-07 1573662024-10-08 165013> hmac2024-10-02 12542024-10-03 3942024-10-04 3222024-10-05 2302024-10-06 4242024-10-07 20682024-10-08 1907> inout2024-10-02 11142024-10-03 3662024-10-04 2812024-10-05 1842024-10-06 2852024-10-07 20002024-10-08 1782> matrixmultiply2024-10-02 522732024-10-03 499312024-10-04 484082024-10-05 172192024-10-06 139502024-10-07 539162024-10-08 52644> ndarray2024-10-02 289222024-10-03 293542024-10-04 273972024-10-05 104802024-10-06 90742024-10-07 309882024-10-08 32344> num-complex2024-10-02 1784442024-10-03 1591442024-10-04 1467222024-10-05 485222024-10-06 391382024-10-07 1713632024-10-08 172915> num-conv2024-10-02 2984952024-10-03 2671342024-10-04 2503502024-10-05 978092024-10-06 873992024-10-07 2931502024-10-08 290661> num-integer2024-10-02 3337312024-10-03 3004182024-10-04 2875162024-10-05 2274162024-10-06 1904132024-10-07 4873482024-10-08 433744> password-hash2024-10-02 224292024-10-03 207022024-10-04 215502024-10-05 90612024-10-06 86602024-10-07 257432024-10-08 22404> pbkdf22024-10-02 778852024-10-03 761922024-10-04 722782024-10-05 1489442024-10-06 1193222024-10-07 2483542024-10-08 190649> powerfmt2024-10-02 3102932024-10-03 2771782024-10-04 2598852024-10-05 1011952024-10-06 897892024-10-07 3020582024-10-08 300192> rawpointer2024-10-02 539172024-10-03 506492024-10-04 484392024-10-05 173752024-10-06 147612024-10-07 562282024-10-08 55013> safetensors2024-10-02 22532024-10-03 17372024-10-04 17982024-10-05 10852024-10-06 15442024-10-07 17422024-10-08 2024> sha12024-10-02 14102024-10-03 6732024-10-04 7722024-10-05 2302024-10-06 4162024-10-07 21252024-10-08 2204> tch2024-10-02 19302024-10-03 22952024-10-04 28342024-10-05 12742024-10-06 4552024-10-07 22902024-10-08 2181> time2024-10-02 3030422024-10-03 2714342024-10-04 2557952024-10-05 1001942024-10-06 888102024-10-07 2978072024-10-08 295315> time-core2024-10-02 3349792024-10-03 3021652024-10-04 2829182024-10-05 1093192024-10-06 965222024-10-07 3247792024-10-08 322102> torch-sys2024-10-02 19112024-10-03 23002024-10-04 28432024-10-05 12712024-10-06 4522024-10-07 22922024-10-08 2177> zip2024-10-02 225202024-10-03 232012024-10-04 209462024-10-05 90672024-10-06 84702024-10-07 246742024-10-08 24870> zstd2024-10-02 1751552024-10-03 1677662024-10-04 1574892024-10-05 527532024-10-06 448442024-10-07 1774112024-10-08 173785> zstd-safe2024-10-02 1792882024-10-03 1703792024-10-04 1593522024-10-05 528202024-10-06 458352024-10-07 1805352024-10-08 177703```* vet: audit remaining dependenciesFor dependencies that did not have clear 10k+ daily downloads, thischange audits them for `safe-to-deploy`.* vet: use external auditsThis adds external audits pulled in automatically by `cargo vet` for theremainder of the dependencies not covered by previous commits.* remove model files, download them instead. Switch from resnet18 to squeezenet1.1* update cargo lock file with ndarray---------Co-authored-by: Andrew Brown <[email protected]>
show more ...