when runing below line:
sym, params = relay.frontend.from_tensorflow(graph_def)
I got a “internal invariant was violdated” error.
Error Msg:
fn () {
free_var %BoxPredictor_0/Shape: Tensor[(4,), int32]
%0 = strided_slice(%BoxPredictor_0/Shape, begin=[0], end=[1], strides=[1]) #
%1 = reshape(%0, newshape=[]) #
%2 = expand_dims(%1, axis=0) #
free_var %BoxPredictor_0/stack_1/1: Tensor[(1,), int32]
%3 = expand_dims(%BoxPredictor_0/stack_1/1, axis=0) #
free_var %BoxPredictor_0/stack_1/2: Tensor[(1,), int32]
%4 = expand_dims(%BoxPredictor_0/stack_1/2, axis=0) #
%5 = (%2, %3, %4)
%6 = concatenate(%5) # an internal invariant was violdated whiletypechecking your program[12:20:32] /Users/jialei/github/tvm/src/relay/op/tensor/transform.cc:188: Check failed: e_ndim == ndim (2 vs. 1) relay.concatenate requires all tensors have the same ndim
The same model has no problem to be compiled by nnvm, if I do:
sym, params = nnvm.frontend.from_tensorflow(graph_def)
I appreciate if anyone can hint me about where should I check to get more information for investigation?