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

[Feature] Support onnxruntime 1.16.0 #2465

Open
user41pp opened this issue Sep 26, 2023 · 1 comment
Open

[Feature] Support onnxruntime 1.16.0 #2465

user41pp opened this issue Sep 26, 2023 · 1 comment

Comments

@user41pp
Copy link

Motivation

Certain parts of the MMDeploy SDK currently rely on Ort::CustomOpApi (e.g. ort_utils.h). This struct was available up to onnxruntime version 1.15.1 but was removed in 1.16.0. See onnxruntime_cxx_api.h v1.15.1 and compare to onnxruntime_cxx_api.h v1.16.0.

Related resources

Snippet from onnxruntime_cxx_api.h v1.15.1:

/// This entire structure is deprecated, but we not marking
/// it as a whole yet since we want to preserve for the next release.
/// </summary>
struct CustomOpApi {
  CustomOpApi(const OrtApi& api) : api_(api) {}

  /** \deprecated use Ort::Value::GetTensorTypeAndShape()
   * [[deprecated]]
   * This interface produces a pointer that must be released. Not exception safe.
   */
  [[deprecated("use Ort::Value::GetTensorTypeAndShape()")]] OrtTensorTypeAndShapeInfo* GetTensorTypeAndShape(_In_ const OrtValue* value);```

### Additional context

_No response_
@RunningLeon
Copy link
Collaborator

@user41pp hi, thanks for your info. Currently we have no plan to upgrade onnxruntime due to the resources. Welcome to PR us if you have time. Thanks in advance.

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

No branches or pull requests

2 participants