Skip to content

Commit

Permalink
Patch lite custom op API (microsoft#17605)
Browse files Browse the repository at this point in the history
A few enhancements:
- Support compute returning status;
- Support variadic;

---------

Co-authored-by: Randy Shuai <[email protected]>
  • Loading branch information
RandySheriffH and RandyShuai authored Sep 26, 2023
1 parent 4ab0e17 commit 37dcefb
Show file tree
Hide file tree
Showing 7 changed files with 656 additions and 211 deletions.
1 change: 1 addition & 0 deletions include/onnxruntime/core/session/onnxruntime_cxx_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -2055,6 +2055,7 @@ struct KernelContext {
void* GetGPUComputeStream() const;
Logger GetLogger() const;
OrtAllocator* GetAllocator(const OrtMemoryInfo& memory_info) const;
OrtKernelContext* GetOrtKernelContext() const { return ctx_; }

private:
OrtKernelContext* ctx_;
Expand Down
Loading

0 comments on commit 37dcefb

Please sign in to comment.