Skip to content

Commit

Permalink
Merge branch 'main' into iproc
Browse files Browse the repository at this point in the history
  • Loading branch information
wenbingl committed Jun 20, 2024
2 parents c68b3c6 + 58b5523 commit b0feca4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/ort_c_to_cpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ struct BaseKernel {
OrtErrorCode GetErrorCodeAndRelease(OrtStatusPtr status) const noexcept;

const OrtApi& api_;
OrtW::CustomOpApi ort_;
const OrtKernelInfo& info_;
OrtW::CustomOpApi ort_;
};

// Deprecated: Use OrtW::CustomOpApi::KernelInfoGetAttribute instead
Expand Down
4 changes: 3 additions & 1 deletion shared/api/image_processor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ OrtxStatus ImageProcessor::Init(std::string_view processor_def) {
return {};
}

ImageProcessor::ImageProcessor() : allocator_(&CppAllocator::Instance()), OrtxObjectImpl(kOrtxKindProcessor) {}
ImageProcessor::ImageProcessor()
: OrtxObjectImpl(kOrtxKindProcessor), allocator_(&CppAllocator::Instance()) {
}

template <typename T>
static ortc::Tensor<T>* StackTensor(const std::vector<TensorArgs>& arg_lists, int axis, ortc::IAllocator* allocator) {
Expand Down
2 changes: 1 addition & 1 deletion shared/api/runner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ class OrtxRunner {
}

private:
std::vector<Operation*> ops_;
ortc::IAllocator* allocator_;
std::vector<Operation*> ops_;
};

} // namespace ort_extensions

0 comments on commit b0feca4

Please sign in to comment.