提交 775f019f 编写于 作者: Q qiaolongfei

remove unused get_layer_proto in Topology

上级 b9dd33f8
...@@ -83,19 +83,6 @@ class Topology(object): ...@@ -83,19 +83,6 @@ class Topology(object):
return data_layers return data_layers
def get_layer_proto(self, name):
"""
get layer by layer name
:param name:
:return:
"""
layers = filter(lambda layer: layer.name == name,
self.__model_config__.layers)
if len(layers) is 1:
return layers[0]
else:
return None
def data_type(self): def data_type(self):
""" """
get data_type from proto, such as: get data_type from proto, such as:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册