Skip to content

Commit e3cba58

Browse files
authored
Merge pull request #81 from Harsh9650/import_edits
Update 0_how_to_work_with_onnx.ipynb
2 parents 3fd9386 + baff921 commit e3cba58

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

notebooks/0_how_to_work_with_onnx.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"outputs": [],
3737
"source": [
3838
"import onnx\n",
39-
"from qonnx.basic.util import qonnx_make_model\n",
39+
"from qonnx.util.basic import qonnx_make_model\n",
4040
"\n",
4141
"Add1_node = onnx.helper.make_node(\n",
4242
" 'Add',\n",
@@ -608,7 +608,7 @@
608608
"metadata": {},
609609
"outputs": [],
610610
"source": [
611-
"onnx_model1 = onnx.qonnx_make_model(graph, producer_name=\"simple-model1\")\n",
611+
"onnx_model1 = qonnx.util.basic.qonnx_make_model(graph, producer_name=\"simple-model1\")\n",
612612
"onnx.save(onnx_model1, '/tmp/simple_model1.onnx')"
613613
]
614614
},
@@ -656,7 +656,7 @@
656656
],
657657
"metadata": {
658658
"kernelspec": {
659-
"display_name": "venv",
659+
"display_name": "Python 3 (ipykernel)",
660660
"language": "python",
661661
"name": "python3"
662662
},
@@ -670,7 +670,7 @@
670670
"name": "python",
671671
"nbconvert_exporter": "python",
672672
"pygments_lexer": "ipython3",
673-
"version": "3.8.16"
673+
"version": "3.8.18"
674674
},
675675
"vscode": {
676676
"interpreter": {
@@ -679,5 +679,5 @@
679679
}
680680
},
681681
"nbformat": 4,
682-
"nbformat_minor": 2
682+
"nbformat_minor": 4
683683
}

notebooks/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@ git clone https://github.com/fastmachinelearning/qonnx
88
cd qonnx
99
virtualenv -p python3.8 venv
1010
source venv/bin/activate
11-
pip install -e .[testing, docs, notebooks]
11+
pip install -e .[testing,docs,notebooks]
12+
cd notebooks
13+
jupyter notebook .
14+
# follow the link printed in the console to bring up Jupyter
1215
```

0 commit comments

Comments
 (0)