Skip to content

Commit f702484

Browse files
committed
Fix forwardTest for ids in python swig.
* unittest need to be added. But fix the bugs first.
1 parent 9115ab1 commit f702484

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)