Rename fastdeploy_runtime.h to runtime.h and Frontend to ModelFormat (#263)

rename frontend to model_format
This commit is contained in:
Jason
2022-09-22 13:24:05 +08:00
committed by GitHub
parent 9bebdaa915
commit e227c5625e
126 changed files with 400 additions and 380 deletions

View File

@@ -15,7 +15,7 @@
from __future__ import absolute_import
import logging
from ... import Frontend
from ... import ModelFormat
from ... import RuntimeOption
from ... import c_lib_wrap as C
@@ -47,7 +47,7 @@ class UIEModel(object):
max_length=128,
schema=[],
runtime_option=RuntimeOption(),
model_format=Frontend.PADDLE):
model_format=ModelFormat.PADDLE):
if isinstance(schema, list):
schema = SchemaNode("", schema)._schema_node_children
elif isinstance(schema, dict):