Skip to content

Commit

Permalink
Code format - 80 column width
Browse files Browse the repository at this point in the history
  • Loading branch information
normanheckscher committed Feb 5, 2017
1 parent 15d0405 commit b9de36b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions nn/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion problems.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit b9de36b

Please sign in to comment.