Fix several C5038 warnings (#748)
This commit is contained in:
Родитель
bef5f07e33
Коммит
58b552388f
|
@ -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
|
||||
|
|
|
@ -85,7 +85,7 @@ OrtxStatus ImageProcessor::Init(std::string_view processor_def) {
|
|||
}
|
||||
|
||||
ImageProcessor::ImageProcessor()
|
||||
: allocator_(&CppAllocator::Instance()), OrtxObjectImpl(kOrtxKindProcessor) {
|
||||
: OrtxObjectImpl(kOrtxKindProcessor), allocator_(&CppAllocator::Instance()) {
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
|
|
@ -278,8 +278,8 @@ class OrtxRunner {
|
|||
}
|
||||
|
||||
private:
|
||||
std::vector<Operation*> ops_;
|
||||
ortc::IAllocator* allocator_;
|
||||
std::vector<Operation*> ops_;
|
||||
};
|
||||
|
||||
} // namespace ort_extensions
|
||||
|
|
Загрузка…
Ссылка в новой задаче