Skip to content

Commit

Permalink
fix python3 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hongzhen1 authored and fengyuan14 committed Feb 12, 2018
1 parent 4696b8f commit 68ca869
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/ideep4py/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,10 @@ def all_ready(inputs, supported_ndim=(2, 4)):
def split(x, indices_or_sections, axis=0):
if all_ready((x,)):
offsets = intVector()
# FIXME
# bypass python3 issue
for i in indices_or_sections:
offsets.push_back(i)
offsets.push_back(int(i))
ys = concat.Backward(x, offsets, axis)

if ys:
Expand Down

0 comments on commit 68ca869

Please sign in to comment.