[Target] Add python binding to new JSON target construction. (#6315)
authorJosh Fromm <jwfromm@uw.edu>
Fri, 21 Aug 2020 14:04:56 +0000 (07:04 -0700)
committerGitHub <noreply@github.com>
Fri, 21 Aug 2020 14:04:56 +0000 (07:04 -0700)
commit005dfb71185f9dc1b578b6d2b2146eaa597780e4
treee1ef03e25beae9dbc079fbadbf613d23b92138d3
parent4876813c7e094c70c64adeae4a32e7983c7842e1
[Target] Add python binding to new JSON target construction. (#6315)

* Add python binding to new JSON target construction.

* Added json string parsing and new test.

* Add error type.

* Add error type in json decoding check.

* Fix sphinx formatting.
python/tvm/target/target.py
src/target/target.cc
tests/python/unittest/test_target_target.py