add output format to ndk build func (#2999)
authoreqy <eqy@cs.washington.edu>
Wed, 10 Apr 2019 05:11:21 +0000 (22:11 -0700)
committerTianqi Chen <tqchen@users.noreply.github.com>
Wed, 10 Apr 2019 05:11:21 +0000 (22:11 -0700)
python/tvm/contrib/ndk.py

index 931fa03..e1703ce 100644 (file)
@@ -63,3 +63,6 @@ def create_shared(output,
         msg = "Compilation error:\n"
         msg += py_str(out)
         raise RuntimeError(msg)
+
+# assign output format
+create_shared.output_format = "so"