[NODE] General serialzation of leaf objects into bytes. (#5299)
authorTianqi Chen <tqchen@users.noreply.github.com>
Fri, 10 Apr 2020 05:04:08 +0000 (22:04 -0700)
committerGitHub <noreply@github.com>
Fri, 10 Apr 2020 05:04:08 +0000 (22:04 -0700)
commit029388f54a90fde29b34e143d9c48c85dec5c8a6
treee38edc474ac6fff3ae4b7d2aa8ca96ce42f5f444
parent7d670b041e2e1b509ceac503b6635ec4434499c4
[NODE] General serialzation of leaf objects into bytes. (#5299)

This PR refactors the serialization mechanism to support general
serialization of leaf objects into bytes.

The new feature superceded the original GetGlobalKey feature for singletons.
Added serialization support for runtime::String.
include/tvm/node/reflection.h
python/tvm/ir/json_compact.py
src/ir/env_func.cc
src/ir/op.cc
src/ir/span.cc
src/node/container.cc
src/node/reflection.cc
src/node/serialization.cc
tests/python/relay/test_json_compact.py
tests/python/unittest/test_node_reflection.py