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

[BUG] macos算子ctest无任何效用 #5894

Open
Baiyuetribe opened this issue Feb 5, 2025 · 0 comments
Open

[BUG] macos算子ctest无任何效用 #5894

Baiyuetribe opened this issue Feb 5, 2025 · 0 comments

Comments

@Baiyuetribe
Copy link
Contributor

bug源头,在mac系统,凡是定义新算子层,在forwaord里定义空白tob_bottom都会错误的成功通过测试,但是Linux却可以正常报错.

示例

在src/layer目录下。定义任意demo.cpp
已demo层为例,不论内部如何实现,,在mac设备统统错误的pass successded。

// 任务

int Demo::forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const
{
    top_blob_values.create(w, k, elemsize, opt.blob_allocator); // 只要定义任意此定义,后续不用实现,mac系统都成功,但Linux就可以检测出错误
    return 0;
}

} // namespace ncnn

```
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

1 participant