Skip to content

Commit

Permalink
remove constant example and replace simple_bind with _simple_bind
Browse files Browse the repository at this point in the history
  • Loading branch information
wkcn committed Jul 15, 2020
1 parent acdb267 commit 1cc19bc
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 167 deletions.
2 changes: 1 addition & 1 deletion benchmark/benchmark_roi_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_roi_align_sym(op, times):
2, 2), spatial_scale=1.0, sampling_ratio=1)
output_sym = mx.sym.MakeLoss(output_sym)

exe = output_sym.simple_bind(
exe = output_sym._simple_bind(
ctx=mx.context.current_context(), data=data.shape, rois=rois.shape)
exe.forward(data=data, rois=rois)
res = exe.outputs[0].asnumpy()
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/test_mul_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_mxnet_symbol():
a_sym = mx.sym.Variable('a')
b_sym = mx.sym.Variable('b')
c_sym = mobula.op.MulElemWise(a_sym, b_sym)
exe = c_sym.simple_bind(
exe = c_sym._simple_bind(
ctx=mx.context.current_context(), a=a.shape, b=b.shape)
exe.forward(a=a, b=b)
print(exe.outputs[0])
Expand Down
84 changes: 0 additions & 84 deletions examples/ConstantOP.py

This file was deleted.

4 changes: 2 additions & 2 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ def test_examples():
examples = [
([], ['MyFirstOP.py', '../docs/tutorial/test_mul_func.py',
'../docs/tutorial/test_mul_op.py']),
(['mxnet'], ['ConstantOP.py', 'RunROIAlign.py',
(['mxnet'], ['RunROIAlign.py',
'dynamic_import_op/dynamic_import_op.py',
'../opzoo/Softmax/test_softmax.py',
]),
(['mxnet', 'tvm'], ['TVMOp.py']),
(['mxnet', 'tvm', 'topi'], ['TVMOp.py']),
]
sys.path.append('./')
record = []
Expand Down
78 changes: 0 additions & 78 deletions tests/test_op/test_constant_op.py

This file was deleted.

2 changes: 1 addition & 1 deletion tests/test_op/test_roi_align_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def test_roi_align_sym():
2, 2), spatial_scale=1.0, sampling_ratio=1)
output_sym = mx.sym.MakeLoss(output_sym)

exe = output_sym.simple_bind(
exe = output_sym._simple_bind(
ctx=mx.context.current_context(), data=data.shape, rois=rois.shape)
exe.forward(data=data, rois=rois)

Expand Down

0 comments on commit 1cc19bc

Please sign in to comment.