Advertisement
themoosemind

Untitled

Apr 7th, 2017
572
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "custreg.py", line 24, in <module>
  3. activity_regularizer=cust_reg))
  4. File "/usr/local/lib/python2.7/dist-packages/keras/models.py", line 422, in add
  5. layer(x)
  6. File "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 578, in __call__
  7. regularization_losses = [self.activity_regularizer(x) for x in _to_list(output)]
  8. File "custreg.py", line 12, in cust_reg
  9. m = K.dot(K.transpose(w), w) - K.eye(w.shape)
  10. File "/usr/local/lib/python2.7/dist-packages/keras/backend/tensorflow_backend.py", line 574, in eye
  11. return variable(np.eye(size), dtype, name)
  12. File "/usr/local/lib/python2.7/dist-packages/numpy/lib/twodim_base.py", line 180, in eye
  13. m = zeros((N, M), dtype=dtype)
  14. TypeError: 'TensorShape' object cannot be interpreted as an index
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement