Commit 5eb15ec3 authored by Shakthi Visagan's avatar Shakthi Visagan
Browse files

more work

parent d46cab26
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -508,7 +508,7 @@ def _cosine_dist(x, y):
  >>> # the output tensor will be of shape (6,6)
  >>> cos_sim_same = layers._cosine_dist(x,y_same)
  >>> cos_sim_same.shape
  (6, 6)
  TensorShape([6, 6])
  >>> diff = cos_sim_same - tf.ones((6, 6), dtype=tf.dtypes.float32, name=None)
  >>> assert tf.reduce_sum(diff) == 0 # True

@@ -525,7 +525,7 @@ def _cosine_dist(x, y):
  >>> # the output tensor will be of shape (256,256)
  >>> cos_sim_orth = layers._cosine_dist(x1,x2)
  >>> cos_sim_orth.shape
  (256, 256)
  TensorShape([256, 256])
  >>> assert tf.reduce_sum(cos_sim_orth) == 0 # True
  >>> assert all([cos_sim_orth.shape[dim] == 256 for dim in range(2)]) # True