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)