Skip to content

Commit f0a8750

Browse files
authored
Rename var for consistency
1 parent d694785 commit f0a8750

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tf2onnx/onnx_opset/tensor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,9 +1275,9 @@ def mkconst(desc, val, dtype=np.int64):
12751275
indices = mkconst('_indicies_const', np.asarray(g))
12761276
gather = mknode('Gather', [shape1.output[0], indices])
12771277
x2 = mknode('Reshape', [input0, gather.output[0]])
1278-
trans2 = mknode('Transpose', [x2.output[0]], {'perm': np.array(p)})
1278+
tr2 = mknode('Transpose', [x2.output[0]], {'perm': np.array(p)})
12791279
shape2 = mknode('Concat', [minus1_const, target_spatial.output[0], depth.output[0]], {'axis': 0})
1280-
x3 = mknode('Reshape', [trans2.output[0], shape2.output[0]])
1280+
x3 = mknode('Reshape', [tr2.output[0], shape2.output[0]])
12811281

12821282
# crop axes
12831283
slice_starts_const1 = mkconst('_slicestart1_const', np.asarray([0, 0]))

0 commit comments

Comments
 (0)