From 775f019fa1d9fcd120ae6fc66f5c0caa9333ebca Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Thu, 23 Feb 2017 23:44:57 +0800 Subject: [PATCH] remove unused get_layer_proto in Topology --- python/paddle/v2/topology.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/python/paddle/v2/topology.py b/python/paddle/v2/topology.py index bfd7ef171a5..3e07c4106ed 100644 --- a/python/paddle/v2/topology.py +++ b/python/paddle/v2/topology.py @@ -83,19 +83,6 @@ class Topology(object): 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): """ get data_type from proto, such as: -- GitLab