[Other] Upgrade runtime module (#1068)

* Upgrade runtime module

* Update option.h

* Fix build error

* Move enumerates

* little modification

* little modification

* little modification:

* Remove some useless flags
This commit is contained in:
Jason
2023-01-06 13:44:05 +08:00
committed by GitHub
parent 1135d33dd7
commit d7a65e5c70
31 changed files with 1838 additions and 1778 deletions

View File

@@ -121,9 +121,7 @@ class FASTDEPLOY_DECL FastDeployModel {
std::vector<FDTensor>().swap(reused_output_tensors_);
}
virtual fastdeploy::Runtime* CloneRuntime() {
return runtime_->Clone();
}
virtual fastdeploy::Runtime* CloneRuntime() { return runtime_->Clone(); }
virtual bool SetRuntime(fastdeploy::Runtime* clone_runtime) {
runtime_ = std::unique_ptr<Runtime>(clone_runtime);