Skip to content

Kezhan/separate op def from kernels - #143

Merged
Ke Zhang (linkerzhang) merged 10 commits into
masterfrom
kezhan/separate_op_def_from_kernels
Dec 11, 2018
Merged

Ke Zhang (linkerzhang) merged 10 commits into
masterfrom
kezhan/separate_op_def_from_kernels

Conversation

@linkerzhang

Copy link
Copy Markdown
Contributor

No description provided.

@pranavsharma

Copy link
Copy Markdown
Contributor

Should we rename contrib_ops.h to contrib_defs.h to make it more consistent with ONNX?

Comment thread onnxruntime/contrib_ops/contrib_defs.h Outdated

#include "core/framework/op_kernel.h"
#include "core/framework/kernel_registry.h"
#include "onnx/defs/schema.h"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace this line with:

#include "onnxruntime/core/graph/onnx_protobuf.h"

It will solve your current build failure.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you very much! Changming.

@snnn

Copy link
Copy Markdown
Contributor

environment.cc belongs to onnxruntime_framework project.
however, it is using onnxruntime::contrib::RegisterContribSchemas(), which is part of the onnxruntime_providers.

@linkerzhang

Copy link
Copy Markdown
Contributor Author

Changming Sun (@snnn) thank you! those schemas only depend on "graph", to avoid any issues later, I put them in graph now.

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

Successfully merging this pull request may close these issues.

3 participants