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

layer LayerNorm not exists or registered #5262

Closed
HarryGest opened this issue Jan 3, 2024 · 2 comments
Closed

layer LayerNorm not exists or registered #5262

HarryGest opened this issue Jan 3, 2024 · 2 comments

Comments

@HarryGest
Copy link

error log | 日志或报错信息 | ログ

layer LayerNorm not exists or registered

context | 编译/运行环境 | バックグラウンド

arm64
sylixos操作系统

how to reproduce | 复现步骤 | 再現方法

  1. pytorch的bertjiont转化为ncnn模型
    转化后的param参数如下(部分):
    Input in0 0 1 in0
    MemoryData pnnx_fold_87 0 1 1 0=512 1=100
    MemoryData pnnx_fold_88 0 1 2 0=512 1=100
    Embed embed_17 1 1 in0 3 0=512 1=21128 2=0 3=10817536
    BinaryOp add_0 2 1 3 1 4 0=0
    BinaryOp add_1 2 1 4 2 5 0=0
    MemoryData attn_mask_0 0 1 6 0=100 1=100
    LayerNorm ln_18 1 1 5 7 0=512 1=1.000000e-12 2=1
    Split splitncnn_0 1 2 7 8 9
    ...
    运行爆以下问题
    layer LayerNorm not exists or registered

more | 其他 | その他

是由于我的ncnn版本太低了么?

@nihui
Copy link
Member

nihui commented Jan 8, 2024

更新ncnn版本再试试?
编译ncnn的时候观察是否编译了 layernorm 相关的代码

@HarryGest
Copy link
Author

感谢回复,是版本问题,新的版本支持了。

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

2 participants