forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestScript.test_onnx_export_script_module_loop.expect
30 lines (29 loc) · 1.29 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
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: "3", 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: "Loop", inputs: [1,2,x.1], outputs: [3], attributes: [{ name: 'body', type: graph, value:
GraphProto {
name: "torch-jit-export1"
inputs: [{name: "_", type:Tensor dims: },{name: "cond", type:Tensor dims: },{name: "6", type:Tensor dims: }]
outputs: [{name: "8", type:Tensor dims: },{name: "7", type:Tensor dims: }]
initializers: []
nodes: [
Node {type: "Add", inputs: [6,6], outputs: [7], attributes: []},
Node {type: "Constant", inputs: [], outputs: [8], attributes: [{ name: 'value', type: tensor, value:TensorProto shape: []}]}
]
}
}]}
]
}
opset_import: [OperatorSetIdProto { domain: }],
}