From b9de36b8595902cd632b7d145155d4c2f8b74696 Mon Sep 17 00:00:00 2001 From: Norman Heckscher Date: Sun, 5 Feb 2017 15:37:26 +1000 Subject: [PATCH] Code format - 80 column width --- nn/base.py | 6 +++--- problems.py | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/nn/base.py b/nn/base.py index 7259768..f89eb2b 100644 --- a/nn/base.py +++ b/nn/base.py @@ -148,9 +148,9 @@ def __call__(self, *args, **kwargs): def variable_scope(self): """Returns the variable_scope declared by the module. - It is valid for library users to access the internal templated variable_scope, - but only makes sense to do so after connection. Therefore we raise an error - here if the variable_scope is requested before connection. + It is valid for library users to access the internal templated + variable_scope, but only makes sense to do so after connection. Therefore + we raise an error here if the variable_scope is requested before connection. The only case where it does make sense to access the variable_scope before connection is to get the post-uniquification name, which we support using diff --git a/problems.py b/problems.py index 6917646..40f0b92 100644 --- a/problems.py +++ b/problems.py @@ -134,7 +134,8 @@ def build(): def _xent_loss(output, labels): - loss = tf.nn.sparse_softmax_cross_entropy_with_logits(logits=output, labels=labels) + loss = tf.nn.sparse_softmax_cross_entropy_with_logits(logits=output, + labels=labels) return tf.reduce_mean(loss)