Other Parts Discussed in Thread: AM69A
Tool/software:
Hello,
I'm working with an ONNX model that includes a TopK
operator. (model in attachements) I want to run it on TIDL using these parameters:
- Input: float32[1,1,100,1]
- K: [30]
- axis = 2
- largest = 1
- sorted = 1
In this case the outputs should be like this:
- Values: float32[1,1,30,1]
- indices: int64[1,1,30,1]
At runtime, Using 16bit quantization I encounter the following shape mismatch: "Expected shape from model of {1,1,30,1} does not match actual shape of {1,2,30,1} for output indices"
And these are the outputs shapes:
Top-K values shape: (1, 1, 30, 1)
Top-K indices shape: (1, 2, 30, 1)
I'm using SDK ti-processor-sdk-rtos-j784s4-evm-10_01_00_04
Why there is a shape difference between values and indices?
Can you help me resolve my problem?