This commit is contained in:
Chester Liu 2024-06-20 08:20:30 +08:00 коммит произвёл GitHub
Родитель bef5f07e33
Коммит 58b552388f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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