Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEON指令读取3x3参数 #940

Closed
XiaochaoGONG opened this issue Apr 24, 2019 · 2 comments
Closed

NEON指令读取3x3参数 #940

XiaochaoGONG opened this issue Apr 24, 2019 · 2 comments

Comments

@XiaochaoGONG
Copy link

Hi,
请教下,vld1q_f32这个指令会读取4个f32类型的值,对于这个3x3的Kernel是怎么处理的?

float32x4_t _k00 = vld1q_f32(k0);
float32x4_t _k03 = vld1q_f32(k0+3);
float32x4_t _k06 = vld1q_f32(k0+6);

感觉在计算乘加时有点问题。

@5for3to1
Copy link

卷积核权重读取时读的是向量,卷积输入也是向量,但在计算的时候,是卷积核权重向量中的一个标量乘上卷积输入中的向量,不是直接向量乘向量。

@nihui
Copy link
Member

nihui commented Aug 2, 2019

@nihui nihui closed this as completed Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants