Skip to content

昨天代码跑tensorflow2ncnn报:libprotobuf FATAL /protobuf_install/include/google/protobuf/repeated_field.h:1184] CHECK failed: (index) < (current_size_) #163

@dpars7

Description

@dpars7

更新昨天代码,用tensorflow2ncnn跑Resnet.pb,报下面的错误:
[libprotobuf FATAL protobuf_install/include/google/protobuf/repeated_field.h:1184] CHECK failed: (index) < (current_size_):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) < (current_size_):
Aborted (core dumped)

跟进发现是node.op() == "Maximum"时没有插入“MemoryData”所致;
后面增加下面的代码就没报错(9月20多号是默认这个为true):
if (node.op() == "Maximum")
isBinaryOp = true;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions