Skip to content

Commit 68ca869

Browse files
hongzhen1fengyuan14
authored andcommitted
fix python3 issue
1 parent 4696b8f commit 68ca869

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/ideep4py/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,10 @@ def all_ready(inputs, supported_ndim=(2, 4)):
116116
def split(x, indices_or_sections, axis=0):
117117
if all_ready((x,)):
118118
offsets = intVector()
119+
# FIXME
120+
# bypass python3 issue
119121
for i in indices_or_sections:
120-
offsets.push_back(i)
122+
offsets.push_back(int(i))
121123
ys = concat.Backward(x, offsets, axis)
122124

123125
if ys:

0 commit comments

Comments
 (0)