mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-07 09:31:35 +08:00
Update fastdeploy_runtime.py
This commit is contained in:
@@ -19,9 +19,10 @@ from . import fastdeploy_main as C
|
|||||||
class FastDeployModel:
|
class FastDeployModel:
|
||||||
def __init__(self, option):
|
def __init__(self, option):
|
||||||
self._model = None
|
self._model = None
|
||||||
self._runtime_option = option._option
|
if option is None:
|
||||||
if self._runtime_option is None:
|
|
||||||
self._runtime_option = C.RuntimeOption()
|
self._runtime_option = C.RuntimeOption()
|
||||||
|
else:
|
||||||
|
self._runtime_option = option._option
|
||||||
|
|
||||||
def model_name(self):
|
def model_name(self):
|
||||||
return self._model.model_name()
|
return self._model.model_name()
|
||||||
|
Reference in New Issue
Block a user