Skip to content

Commit

Permalink
testing default context
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Jan 30, 2019
1 parent 4c893ed commit 1f95d02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/python/unittest/test_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,8 @@ def test_depthwise_convolution():

dev = default_context()
exe1 = y1.simple_bind(dev, x=shape)
exe2 = y2.simple_bind(dev, x=shape, w=(num_filter, shape[1]//num_group)+kernel,
print("default context is: ", dev)
exe2 = y2.simple_bind(mx.cpu(), x=shape, w=(num_filter, shape[1]//num_group)+kernel,
b=(num_filter,))
for arr1, arr2 in zip(exe1.arg_arrays, exe2.arg_arrays):
arr1[:] = np.random.normal(size=arr1.shape)
Expand Down

0 comments on commit 1f95d02

Please sign in to comment.