Skip to content

Commit

Permalink
Merge pull request #29243 from mrodozov/mxnet-py-unittest
Browse files Browse the repository at this point in the history
Add test for mxnet python interface
  • Loading branch information
cmsbuild committed Mar 24, 2020
2 parents 7047313 + 0f39e07 commit 62c289f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PhysicsTools/MXNet/test/BuildFile.xml
@@ -1,7 +1,9 @@
<test name="test_py_mxnet" command="test_mxnet.py">
<use name="mxnet-predict"/>
</test>
<bin name="testMXNetCppPredictor" file="testRunner.cpp, testMXNetCppPredictor.cc">
<use name="boost_filesystem" />
<use name="cppunit" />

<use name="PhysicsTools/MXNet" />
<use name="FWCore/ParameterSet" />
<use name="FWCore/Utilities" />
Expand Down
5 changes: 5 additions & 0 deletions PhysicsTools/MXNet/test/test_mxnet.py
@@ -0,0 +1,5 @@
#!/usr/bin/env python
import mxnet as mx
a = mx.nd.ones((2, 3))
b = a * 2 + 1
b.asnumpy()

0 comments on commit 62c289f

Please sign in to comment.