From 8f59ef84ec14f762577a1cd50cdcc29be32248e3 Mon Sep 17 00:00:00 2001 From: Wang Date: Wed, 19 Jul 2017 13:19:06 -0700 Subject: [PATCH] Fix context typo --- keras/engine/training.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keras/engine/training.py b/keras/engine/training.py index 791f0dbaf7a..33c2a4505a3 100644 --- a/keras/engine/training.py +++ b/keras/engine/training.py @@ -1815,7 +1815,7 @@ def str2context(s): self._context = [mx.current_context()] else: if isinstance(context, str): - self_context = [context] + context = [context] self._context = [str2context(s) for s in context] self._data_names = [x.name for x in self.inputs] self._label_names = [x.name for x in self.targets + self.sample_weights]