Skip to content

Commit

Permalink
[docs] Fix model path in IR getting started (#1604)
Browse files Browse the repository at this point in the history
Fixes #1600 by using a
relative path. Validated with sphinx.
  • Loading branch information
justinchuby authored Jun 12, 2024
1 parent 57e26f1 commit 165ba5c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions docs/intermediate_representation/getting_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,12 @@
"metadata": {},
"outputs": [],
"source": [
"import pathlib\n",
"\n",
"import onnx\n",
"\n",
"from onnxscript import ir\n",
"\n",
"# Load the model as onnx.ModelProto\n",
"model_proto = onnx.load(\n",
" pathlib.Path(ir.__file__).parent.parent.parent\n",
" / \"testdata\"\n",
" / \"dort_models\"\n",
" / \"llama_forward.onnx\"\n",
")\n",
"model_proto = onnx.load(\"../../testdata/dort_models/llama_forward.onnx\")\n",
"\n",
"# Create an IR object from the model\n",
"model = ir.serde.deserialize_model(model_proto)"
Expand Down Expand Up @@ -1479,7 +1472,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.9"
"version": "3.11.9"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 165ba5c

Please sign in to comment.