forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTestScript.test_onnx_export_script_module_loop.expect
41 lines (39 loc) · 1.84 KB
/
TestScript.test_onnx_export_script_module_loop.expect
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
ModelProto {
producer_name: "pytorch"
domain: ""
doc_string: ""
graph:
GraphProto {
name: "torch-jit-export"
inputs: [{name: "x.1", type:Tensor dims: 1 2 3}]
outputs: [{name: "4", type:Tensor dims: 1 2 3}]
initializers: []
nodes: [
Node {type: "Constant", inputs: [], outputs: [1], attributes: [{ name: 'value', type: tensor, value:TensorProto shape: []}]},
Node {type: "Constant", inputs: [], outputs: [2], attributes: [{ name: 'value', type: tensor, value:TensorProto shape: []}]},
Node {type: "Constant", inputs: [], outputs: [3], attributes: [{ name: 'value', type: tensor, value:TensorProto shape: []}]},
Node {type: "Loop", inputs: [2,1,x.1], outputs: [4], attributes: [{ name: 'body', type: graph, value:
GraphProto {
name: "torch-jit-export1"
inputs: [{name: "5", type:Tensor dims: },{name: "cond.1", type:Tensor dims: },{name: "7", type:Tensor dims: }]
outputs: [{name: "1", type:Tensor dims: },{name: "8", type:Tensor dims: }]
initializers: []
nodes: [
Node {type: "Loop", inputs: [3,1,7], outputs: [8], attributes: [{ name: 'body', type: graph, value:
GraphProto {
name: "torch-jit-export2"
inputs: [{name: "i", type:Tensor dims: },{name: "cond", type:Tensor dims: },{name: "11", type:Tensor dims: }]
outputs: [{name: "1", type:Tensor dims: },{name: "12", type:Tensor dims: }]
initializers: []
nodes: [
Node {type: "Add", inputs: [11,i], outputs: [12], attributes: []}
]
}
}]}
]
}
}]}
]
}
opset_import: [OperatorSetIdProto { domain: }],
}