Skip to content

使用C-API,链接libpaddle_capi_whole.a库,运行的时候遇到UnKnown class type: data #2863

@fingthinking

Description

@fingthinking

在使用公司发布的capi静态库版本:
image
中的libpaddle_capi_whole.a进行编译的时候;
在使用
image
image
machine_create_for_inference方法的时候
遇到了UnKnow class type: data的问题:F0714 15:02:00.653980 30167 ClassRegistrar.h:65] Check failed: mapGet(type, creatorMap_, &creator) Unknown class type: data
其中config的配置文件Json格式片段如下:

type: "nn"
layers {
  name: "word"
  type: "data"
  size: 48127
  active_type: ""
}
layers {
  name: "__embedding_0__"
  type: "mixed"
  size: 128
  active_type: ""
  inputs {
    input_layer_name: "word"
    input_parameter_name: "___embedding_0__.w0"
    proj_conf {
      type: "table"
      name: "___embedding_0__.w0"
      input_size: 48127
      output_size: 128
    }
  }
}

type:data在capi中无法使用,请问这种情况如何解决?

Metadata

Metadata

Assignees

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