@@ -24,25 +24,21 @@ ModelProto {
24
24
GraphProto {
25
25
name: "torch-jit-export2"
26
26
inputs: []
27
- outputs: [{name: "11 ", type:Tensor dims: 1 20}]
27
+ outputs: [{name: "9 ", type:Tensor dims: 1 20}]
28
28
initializers: []
29
29
nodes: [
30
- Node {type: "Constant", inputs: [], outputs: [9], attributes: [{ name: 'value', type: tensor, value:TensorProto shape: [1]}]},
31
- Node {type: "Gemm", inputs: [3,1,9], outputs: [10], attributes: [{ name: 'alpha', type: float, value: 1},{ name: 'beta', type: float, value: 0},{ name: 'transB', type: int, value: 1}]},
32
- Node {type: "Add", inputs: [2,10], outputs: [11], attributes: []}
30
+ Node {type: "Gemm", inputs: [3,1,2], outputs: [9], attributes: [{ name: 'alpha', type: float, value: 1},{ name: 'beta', type: float, value: 1},{ name: 'transB', type: int, value: 1}]}
33
31
]
34
32
}
35
33
36
34
},{ name: 'else_branch', type: graph, value:
37
35
GraphProto {
38
36
name: "torch-jit-export3"
39
37
inputs: []
40
- outputs: [{name: "14 ", type:Tensor dims: 1 20}]
38
+ outputs: [{name: "10 ", type:Tensor dims: 1 20}]
41
39
initializers: []
42
40
nodes: [
43
- Node {type: "Constant", inputs: [], outputs: [12], attributes: [{ name: 'value', type: tensor, value:TensorProto shape: [1]}]},
44
- Node {type: "Gemm", inputs: [3,1,12], outputs: [13], attributes: [{ name: 'alpha', type: float, value: 1},{ name: 'beta', type: float, value: 0},{ name: 'transB', type: int, value: 1}]},
45
- Node {type: "Add", inputs: [2,13], outputs: [14], attributes: []}
41
+ Node {type: "Gemm", inputs: [3,1,2], outputs: [10], attributes: [{ name: 'alpha', type: float, value: 1},{ name: 'beta', type: float, value: 1},{ name: 'transB', type: int, value: 1}]}
46
42
]
47
43
}
48
44
@@ -54,12 +50,10 @@ ModelProto {
54
50
GraphProto {
55
51
name: "torch-jit-export4"
56
52
inputs: []
57
- outputs: [{name: "17 ", type:Tensor dims: 1 20}]
53
+ outputs: [{name: "11 ", type:Tensor dims: 1 20}]
58
54
initializers: []
59
55
nodes: [
60
- Node {type: "Constant", inputs: [], outputs: [15], attributes: [{ name: 'value', type: tensor, value:TensorProto shape: [1]}]},
61
- Node {type: "Gemm", inputs: [3,1,15], outputs: [16], attributes: [{ name: 'alpha', type: float, value: 1},{ name: 'beta', type: float, value: 0},{ name: 'transB', type: int, value: 1}]},
62
- Node {type: "Add", inputs: [2,16], outputs: [17], attributes: []}
56
+ Node {type: "Gemm", inputs: [3,1,2], outputs: [11], attributes: [{ name: 'alpha', type: float, value: 1},{ name: 'beta', type: float, value: 1},{ name: 'transB', type: int, value: 1}]}
63
57
]
64
58
}
65
59
0 commit comments