From cfbfa0a1f2fd789036510a84ea4ff60e026d44a6 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Wed, 5 Apr 2017 13:02:19 +0800 Subject: [PATCH] Fix typo --- python/paddle/v2/config_base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/paddle/v2/config_base.py b/python/paddle/v2/config_base.py index 1ec1d7bbdf9..abf77125e38 100644 --- a/python/paddle/v2/config_base.py +++ b/python/paddle/v2/config_base.py @@ -65,7 +65,7 @@ class Layer(object): def __init__(self, name=None, parent_layers=None): assert isinstance(parent_layers, dict) self.name = name - self.__contex__ = {} + self.__context__ = {} self.__parent_layers__ = parent_layers def to_proto(self, context): @@ -87,7 +87,7 @@ class Layer(object): return self.to_proto_impl(**kwargs) elif self.context_name() not in context: context[self.context_name()] = self.to_proto_impl(**kwargs) - self.__contex__ = context + self.__context__ = context if self.use_context_name(): return context[self.context_name()] else: @@ -113,7 +113,7 @@ class Layer(object): this layer is called. :return: """ - return self.__contex__[self.context_name()].size + return self.__context__[self.context_name()].size def __convert_to_v2__(method_name, parent_names, is_default_name=True): -- GitLab