Skip to content

Commit 1f91c2f

Browse files
authored
Merge pull request #471 from reyoung/feature/fix_pypaddle_forword_ids
Fix forwardTest for ids in python swig.
2 parents 9115ab1 + f702484 commit 1f91c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/py_paddle/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ def wrap(callback):
8282
def __arguments_to_numpy__(i, arg):
8383
assert isinstance(arg, swig_paddle.Arguments)
8484
value = arg.getSlotValue(i)
85+
ids = arg.getSlotIds(i)
8586
if value is not None:
8687
assert isinstance(value, swig_paddle.Matrix)
8788
value = value.copyToNumpyMat()
88-
ids = arg.getSlotIds(i)
8989
if ids is not None:
9090
assert isinstance(ids, swig_paddle.IVector)
9191
ids = ids.copyToNumpyArray()

0 commit comments

Comments
 (0)