提交 33edc01a 编写于 作者: T tangwei

code clean

上级 f8d55c9f
......@@ -99,30 +99,6 @@ class Model(object):
"""
pass
@abc.abstractmethod
def shrink(self, params):
"""R
"""
pass
@abc.abstractmethod
def dump_model_program(self, path):
"""R
"""
pass
@abc.abstractmethod
def dump_inference_param(self, params):
"""R
"""
pass
@abc.abstractmethod
def dump_inference_program(self, inference_layer, path):
"""R
"""
pass
class YamlModel(Model):
"""R
......
......@@ -115,7 +115,7 @@ class TranspileTrainer(Trainer):
def instance(self, context):
models = envs.get_global_env("train.model.models")
model_class = envs.lazy_instance(models, "TrainNet")
model_class = envs.lazy_instance(models, "TrainModel")
self.model = model_class(None)
context['status'] = 'init_pass'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册