TNN icon indicating copy to clipboard operation
TNN copied to clipboard

X86GatherLayerAcc::Forward invalid slice_index

Open MankaranSingh opened this issue 2 years ago • 1 comments

1. 环境(environment)

  • Build OS and Version: Ubuntu
  • RunTime OS Version: Linux
  • RunTime DEVICE: x86

2. Github版本

  • branch:master
  • commit(optional):

3. 编译方式(compile method) CMake完整编译参数(full cmake arguments)

4. 编译日志(build log)

将日志粘贴在这里
Paste log here or pastebin

5. 详细描述bug 情况 (Describe the bug)

On x86, gather layer in model causes some issue.

6. 运行日志(runtime log) x86:

E/tnn: DoForward [File source/tnn/device/x86/acc/x86_gather_layer_acc.cc][Line 69] X86GatherLayerAcc::Forward invalid slice_index
E/tnn: Forward [File source/tnn/core/default_network.cc][Line 615] Forward error code: 0x4000 msg: X86GatherLayerAcc::Forward invalid slice_index, exit

opencl:

E/tnn: Forward [File source/tnn/device/opencl/acc/opencl_layer_acc.cc][Line 137] code: 0xA001 msg: OpenCL NDRange failed
E/tnn: Forward [File source/tnn/core/default_network.cc][Line 615] Forward error code: 0xA001 msg: OpenCL NDRange failed, exit

Model files (tnnmodel and proto are in zip): https://drive.google.com/file/d/1up61AdaleDutXnSBaHXH_88J-zU9vchr/view?usp=sharing

MankaranSingh avatar Feb 02 '23 10:02 MankaranSingh

It's related to gather layer having negative indices. TNN dosent supports negative indices for opencl/x86/arm I guess. NAIVE worls ok

MankaranSingh avatar Feb 09 '23 08:02 MankaranSingh