mirror of https://github.com/llvm/torch-mlir
Update readme to fit new project structure (#2548)
Co-authored-by: lanzongwei.lan <lanzongwei.lan@bytedance.com>pull/2570/head snapshot-20231113.1021
parent
1a064cdf1a
commit
dd759a24f2
|
@ -82,10 +82,10 @@ Standalone script to Convert a PyTorch ResNet18 model to MLIR and run it on the
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Get the latest example if you haven't checked out the code
|
# Get the latest example if you haven't checked out the code
|
||||||
wget https://raw.githubusercontent.com/llvm/torch-mlir/main/examples/torchscript_resnet18.py
|
wget https://raw.githubusercontent.com/llvm/torch-mlir/main/projects/pt1/examples/torchscript_resnet18.py
|
||||||
|
|
||||||
# Run ResNet18 as a standalone script.
|
# Run ResNet18 as a standalone script.
|
||||||
python examples/torchscript_resnet18.py
|
python projects/pt1/examples/torchscript_resnet18.py
|
||||||
|
|
||||||
load image from https://upload.wikimedia.org/wikipedia/commons/2/26/YellowLabradorLooking_new.jpg
|
load image from https://upload.wikimedia.org/wikipedia/commons/2/26/YellowLabradorLooking_new.jpg
|
||||||
Downloading: "https://download.pytorch.org/models/resnet18-f37072fd.pth" to /home/mlir/.cache/torch/hub/checkpoints/resnet18-f37072fd.pth
|
Downloading: "https://download.pytorch.org/models/resnet18-f37072fd.pth" to /home/mlir/.cache/torch/hub/checkpoints/resnet18-f37072fd.pth
|
||||||
|
|
Loading…
Reference in New Issue