Skip to content

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

Open
@Baiyuetribe

Description

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

```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions