Skip to content

Commit

Permalink
Use weight name directly as TensorFlow weight __str__ appears to be m…
Browse files Browse the repository at this point in the history
…issing
  • Loading branch information
dsblank committed Aug 10, 2017
1 parent bd00dcd commit 936c9b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conx/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -1595,7 +1595,8 @@ def describe_connection_to(self, layer1, layer2):
if klayer.name == layer2.name:
weights = klayer.get_weights()
for w in range(len(klayer.weights)):
retval += "\n %s has shape %s" % (klayer.weights[w], weights[w].shape)
retval += "\n %s has shape %s" % (
klayer.weights[w].name, weights[w].shape)
## FIXME: how to show merged layer weights?
return retval

Expand Down

0 comments on commit 936c9b1

Please sign in to comment.