diff --git a/python/paddle/v2/topology.py b/python/paddle/v2/topology.py index bfd7ef171a5fb6421801f589e36e3172c42469f3..3e07c4106ed1423a0be6841d8b437a40c7b55e1b 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: