天志
Results
2
comments of
天志
ConstantOfShape 一般是因为原模型(torch)转onnx使用了squeeze函数减少维度,在原模型中用torch.max相应维度代替torch.squeeze使用;topK,Tengine有topKV2不兼容topK,可以使用多次torch.max并将每次取出的位置元素置为小值解决,其他op不清楚解决方案,一个思路就是尽量用兼容算子重写模型。
> IndexError: index 10 is out of bounds for axis 1 with size 10 作者在将matlab转为python代码时没注意两种编程语言的数组索引的区别,你可以将m_point改为m_point - 1。