There’s another piece of information,an error occurred while obtaining the end value:
def _stridedSlice():
xxxx
end = _get_list_param(params, inputs[2])
xxxx
error info:
<class 'tvm.relay.expr.Call'> has no attribute name_hint
So,I change the code:
try:
end = _get_list_param(params, inputs[2])
except (IndexError, KeyError, AttributeError):
end = _infer_value(inputs[2], params).asnumpy().tolist()
Finally,I get the ‘end’ value of 0(end = [0]).But begin = [-1], after running ‘_transform_mask’ function, begin = [3] (because input shape is (4,),so [-1:] == [3:]).
I think the ‘end = _infer_value(inputs[2], params).asnumpy().tolist()’ is wrong. if not have ‘end’,the ‘enc’ value may be ‘len(inputs[0])’. example:
input.shape = (4,)
input[-1:] = input[-1:4] = input[3:4]