Skip to content

Commit

Permalink
Tested again with torch 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Sep 6, 2023
1 parent 7222224 commit a20fc5f
Show file tree
Hide file tree
Showing 13 changed files with 2,796 additions and 2,581 deletions.
30 changes: 15 additions & 15 deletions examples/ONNX/ab.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"format": "ModECI MDF v0.4",
"generating_application": "Python modeci-mdf v0.4.7",
"graphs": {
"torch-jit-export": {
"torch_jit": {
"nodes": {
"Add_1": {
"/A/Add": {
"input_ports": {
"input": {
"shape": [
Expand All @@ -19,7 +19,7 @@
"B": {
"value": 1.0
},
"Add_1": {
"/A/Add": {
"function": "onnx::Add",
"args": {
"A": "input",
Expand All @@ -28,14 +28,14 @@
}
},
"output_ports": {
"onnx_Mul_2": {
"value": "Add_1"
"_A_Add_output_0": {
"value": "/A/Add"
}
}
},
"Mul_3": {
"/B/Mul": {
"input_ports": {
"onnx_Mul_2": {
"_A_Add_output_0": {
"shape": [
2,
3
Expand All @@ -47,27 +47,27 @@
"B": {
"value": 5.0
},
"Mul_3": {
"/B/Mul": {
"function": "onnx::Mul",
"args": {
"A": "onnx_Mul_2",
"A": "_A_Add_output_0",
"B": "B"
}
}
},
"output_ports": {
"_4": {
"value": "Mul_3"
"value": "/B/Mul"
}
}
}
},
"edges": {
"Add_1.onnx_Mul_2_Mul_3.onnx_Mul_2": {
"sender": "Add_1",
"receiver": "Mul_3",
"sender_port": "onnx_Mul_2",
"receiver_port": "onnx_Mul_2"
"/A/Add._A_Add_output_0_/B/Mul._A_Add_output_0": {
"sender": "/A/Add",
"receiver": "/B/Mul",
"sender_port": "_A_Add_output_0",
"receiver_port": "_A_Add_output_0"
}
}
}
Expand Down
Binary file modified examples/ONNX/ab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 15 additions & 15 deletions examples/ONNX/ab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ ONNX Model:
format: ModECI MDF v0.4
generating_application: Python modeci-mdf v0.4.7
graphs:
torch-jit-export:
torch_jit:
nodes:
Add_1:
/A/Add:
input_ports:
input:
shape:
Expand All @@ -14,35 +14,35 @@ ONNX Model:
parameters:
B:
value: 1.0
Add_1:
/A/Add:
function: onnx::Add
args:
A: input
B: B
output_ports:
onnx_Mul_2:
value: Add_1
Mul_3:
_A_Add_output_0:
value: /A/Add
/B/Mul:
input_ports:
onnx_Mul_2:
_A_Add_output_0:
shape:
- 2
- 3
type: float
parameters:
B:
value: 5.0
Mul_3:
/B/Mul:
function: onnx::Mul
args:
A: onnx_Mul_2
A: _A_Add_output_0
B: B
output_ports:
_4:
value: Mul_3
value: /B/Mul
edges:
Add_1.onnx_Mul_2_Mul_3.onnx_Mul_2:
sender: Add_1
receiver: Mul_3
sender_port: onnx_Mul_2
receiver_port: onnx_Mul_2
/A/Add._A_Add_output_0_/B/Mul._A_Add_output_0:
sender: /A/Add
receiver: /B/Mul
sender_port: _A_Add_output_0
receiver_port: _A_Add_output_0
36 changes: 18 additions & 18 deletions examples/ONNX/abc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"format": "ModECI MDF v0.4",
"generating_application": "Python modeci-mdf v0.4.7",
"graphs": {
"torch-jit-export": {
"torch_jit": {
"nodes": {
"Add_1": {
"/A/Add": {
"input_ports": {
"input": {
"shape": [
Expand All @@ -19,7 +19,7 @@
"B": {
"value": 1.0
},
"Add_1": {
"/A/Add": {
"function": "onnx::Add",
"args": {
"A": "input",
Expand All @@ -28,8 +28,8 @@
}
},
"output_ports": {
"onnx_Loop_3": {
"value": "Add_1"
"_A_Add_output_0": {
"value": "/A/Add"
}
}
},
Expand All @@ -41,7 +41,7 @@
],
"type": "float"
},
"onnx_Loop_3": {
"_A_Add_output_0": {
"shape": [
2,
3
Expand All @@ -52,8 +52,8 @@
"parameters": {
"body": {
"value": {
"graph_torch-jit-export1": {
"id": "torch-jit-export1",
"graph_torch_jit1": {
"id": "torch_jit1",
"nodes": {
"Div_5": {
"input_ports": {
Expand Down Expand Up @@ -113,7 +113,7 @@
"args": {
"M": "B_loop_count",
"cond": "cond",
"v_initial": "onnx_Loop_3"
"v_initial": "_A_Add_output_0"
}
}
},
Expand All @@ -123,7 +123,7 @@
}
}
},
"Mul_8": {
"/C/Mul": {
"input_ports": {
"x.3": {
"shape": [
Expand All @@ -136,7 +136,7 @@
"B": {
"value": 100.0
},
"Mul_8": {
"/C/Mul": {
"function": "onnx::Mul",
"args": {
"A": "x.3",
Expand All @@ -146,21 +146,21 @@
},
"output_ports": {
"_13": {
"value": "Mul_8"
"value": "/C/Mul"
}
}
}
},
"edges": {
"Add_1.onnx_Loop_3_Loop_3.onnx_Loop_3": {
"sender": "Add_1",
"/A/Add._A_Add_output_0_Loop_3._A_Add_output_0": {
"sender": "/A/Add",
"receiver": "Loop_3",
"sender_port": "onnx_Loop_3",
"receiver_port": "onnx_Loop_3"
"sender_port": "_A_Add_output_0",
"receiver_port": "_A_Add_output_0"
},
"Loop_3.x.3_Mul_8.x.3": {
"Loop_3.x.3_/C/Mul.x.3": {
"sender": "Loop_3",
"receiver": "Mul_8",
"receiver": "/C/Mul",
"sender_port": "x.3",
"receiver_port": "x.3"
}
Expand Down
36 changes: 18 additions & 18 deletions examples/ONNX/abc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ ONNX Model:
format: ModECI MDF v0.4
generating_application: Python modeci-mdf v0.4.7
graphs:
torch-jit-export:
torch_jit:
nodes:
Add_1:
/A/Add:
input_ports:
input:
shape:
Expand All @@ -14,30 +14,30 @@ ONNX Model:
parameters:
B:
value: 1.0
Add_1:
/A/Add:
function: onnx::Add
args:
A: input
B: B
output_ports:
onnx_Loop_3:
value: Add_1
_A_Add_output_0:
value: /A/Add
Loop_3:
input_ports:
B_loop_count:
shape:
- 1
type: float
onnx_Loop_3:
_A_Add_output_0:
shape:
- 2
- 3
type: float
parameters:
body:
value:
graph_torch-jit-export1:
id: torch-jit-export1
graph_torch_jit1:
id: torch_jit1
nodes:
Div_5:
input_ports:
Expand Down Expand Up @@ -75,11 +75,11 @@ ONNX Model:
args:
M: B_loop_count
cond: cond
v_initial: onnx_Loop_3
v_initial: _A_Add_output_0
output_ports:
x.3:
value: Loop_3
Mul_8:
/C/Mul:
input_ports:
x.3:
shape:
Expand All @@ -88,22 +88,22 @@ ONNX Model:
parameters:
B:
value: 100.0
Mul_8:
/C/Mul:
function: onnx::Mul
args:
A: x.3
B: B
output_ports:
_13:
value: Mul_8
value: /C/Mul
edges:
Add_1.onnx_Loop_3_Loop_3.onnx_Loop_3:
sender: Add_1
/A/Add._A_Add_output_0_Loop_3._A_Add_output_0:
sender: /A/Add
receiver: Loop_3
sender_port: onnx_Loop_3
receiver_port: onnx_Loop_3
Loop_3.x.3_Mul_8.x.3:
sender_port: _A_Add_output_0
receiver_port: _A_Add_output_0
Loop_3.x.3_/C/Mul.x.3:
sender: Loop_3
receiver: Mul_8
receiver: /C/Mul
sender_port: x.3
receiver_port: x.3
Loading

0 comments on commit a20fc5f

Please sign in to comment.