[TF] Fix some shape mismatches between TF and Relay (#6166)
authorlixiaoquan <radioheads@163.com>
Wed, 29 Jul 2020 17:34:32 +0000 (01:34 +0800)
committerGitHub <noreply@github.com>
Wed, 29 Jul 2020 17:34:32 +0000 (10:34 -0700)
commit760a547715e18a3495a6425a8f18c359cf107dc6
tree36f0a11b923bf822b20525fa14b784efdb39d7b6
parent2ce1193aa46ed4e22f47f6c7b72b7998646a57f8
[TF] Fix some shape mismatches between TF and Relay (#6166)

Make ndarray_size output scalar
  Make gather_nd output scalar if needed
src/relay/op/tensor/transform.cc
src/relay/op/tensor/unary.cc
src/relay/transforms/fold_constant.cc
tests/python/frontend/tensorflow/test_forward.py
tests/python/relay/test_pass_fold_constant.py
topi/include/topi/transform.h
topi/tests/python/test_topi_transform.py