mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 16:48:03 +08:00
Rename pybind/fastdeploy_runtime.cc to pybind/runtime.cc (#273)
* fix yaml * Rename pybind/fastdeploy_runtime.cc to runtime.cc
This commit is contained in:
@@ -18,7 +18,7 @@ import sys
|
||||
|
||||
from .c_lib_wrap import (ModelFormat, Backend, FDDataType, TensorInfo, Device,
|
||||
FDTensor, is_built_with_gpu, is_built_with_ort,
|
||||
is_built_with_paddle, is_built_with_trt,
|
||||
ModelFormat, is_built_with_paddle, is_built_with_trt,
|
||||
get_default_cuda_directory)
|
||||
|
||||
from .runtime import Runtime, RuntimeOption
|
||||
|
@@ -55,7 +55,7 @@ class RuntimeOption:
|
||||
self._option = C.RuntimeOption()
|
||||
|
||||
def set_model_path(self, model_path, params_path="",
|
||||
model_format="paddle"):
|
||||
model_format=C.ModelFormat.PADDLE):
|
||||
return self._option.set_model_path(model_path, params_path,
|
||||
model_format)
|
||||
|
||||
|
Reference in New Issue
Block a user