Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
reminisce committed Jun 20, 2018
1 parent 10b67b6 commit 051c184
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/python/unittest/test_subgraph_op.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ctypes
import mxnet as mx
from mxnet.base import SymbolHandle, check_call, _LIB
from mxnet.base import SymbolHandle, check_call, _LIB, mx_uint, c_str_array
from mxnet.symbol import Symbol
import numpy as np

Expand All @@ -14,7 +14,11 @@ def test_subgraph_op_whole_graph():

out = SymbolHandle()

check_call(_LIB.MXPartitionGraph(regular_sym.handle, ctypes.byref(out)))
op_names = []
#op_names = [mx.sym.sin.__name__, mx.sym.Convolution.__name__]

check_call(_LIB.MXPartitionGraph(regular_sym.handle, mx_uint(len(op_names)),
c_str_array(op_names), ctypes.byref(out)))

subgraph_sym = Symbol(out)
assert regular_sym.list_inputs() == subgraph_sym.list_inputs()
Expand Down

0 comments on commit 051c184

Please sign in to comment.