Tencent / TNN

TNN: developed by Tencent Youtu Lab and Guangying Lab, a uniform deep learning inference framework for mobile、desktop and server. TNN is distinguished by several outstanding features, including its cross-platform capability, high performance, model compression and code pruning. Based on ncnn and Rapidnet, TNN further strengthens the support and performance optimization for mobile devices, and also draws on the advantages of good extensibility and high performance from existed open source efforts. TNN has been deployed in multiple Apps from Tencent, such as Mobile QQ, Weishi, Pitu, etc. Contributions are welcome to work in collaborative with us and make TNN a better framework.
Other
4.4k stars 770 forks source link

LSTM model init failure #1917

Closed ziggy1209 closed 1 year ago

ziggy1209 commented 1 year ago

1. 环境(environment)

Not applicable

5. 详细描述bug 情况 (Describe the bug) Converted a LSTM model successfully but encountered layer init failure during inference session

6. 运行日志(runtime log)

Initializing Model...
E/tnn: RawBuffer2ArmBlob [File source/tnn/device/arm/acc/arm_layer_acc.cc][Line 135] RawBuffer2ArmBlob:: unsupported buffer and blob data type: 3, 0
E/tnn: InitLayers [File source/tnn/core/default_network.cc][Line 333] Error Init layer Expand_30 (err: 4096 or 0x1000)

7. 截图(Screenshots)

![Screenshot from 2023-03-31 18-10-40](https://user-images.githubusercontent.com/58074506/229092057-a7e08f0f-8ff1-481a-ab35-959ce76cf78f.png)
ziggy1209 commented 1 year ago

Found the problem to be expanding a 1D vector to 3D which is not supported by TNN ARM.