[Relay] Handle ndarray_size in FoldConstant (#6156)
authorlixiaoquan <radioheads@163.com>
Tue, 28 Jul 2020 22:49:21 +0000 (06:49 +0800)
committerGitHub <noreply@github.com>
Tue, 28 Jul 2020 22:49:21 +0000 (15:49 -0700)
commit44ff1f3b5ed0751fee39537a0e6e3870a74c930b
tree1208b360b0e73c99bdb022a7d0f9a89399fe1b74
parent8cd53e00722d079290b53ade348b860f9c237ee9
[Relay] Handle ndarray_size in FoldConstant (#6156)

* [Relay] Handle ndarray_size in FoldConstant

* Use Optional
src/relay/transforms/fold_constant.cc
tests/python/relay/test_pass_fold_constant.py