TexasInstruments / edgeai-tidl-tools

Edgeai TIDL Tools and Examples - This repository contains Tools and example developed for Deep learning runtime (DLRT) offering provided by TI’s edge AI solutions.
Other
129 stars 33 forks source link

How to use the softmax(dim=1)? #23

Closed smilecode-github closed 1 month ago

smilecode-github commented 2 years ago

Hello.

I am making a segmentation model using softmax(dim=1).

I compiled my model using edgeai-tidl-tools on PC.

But, I found softmax(dim=1) layer is not supported.

Because softmax is only supported in [1, 1, 1, N], so it cannot be used for dim=1.

How to use the softmax(dim=1)?

Also, How to check softmax(dim=1) in compile using edgeai-tidl-tools on PC?

suyali commented 2 years ago

@smilecode-github Have you solved this problem?

vtrip97 commented 1 month ago

@smilecode-github : You could offload the particular layer via deny-list . Alternatively, you could keep this on the DSP by representing it as a combination of transpose and reshape layers (and still perform softmax on the outermost dimension)