Commit 0f0b29ba authored by Shakthi Visagan's avatar Shakthi Visagan
Browse files

more work

parent 8e418aeb
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -509,8 +509,8 @@ def cosine_dist(x, y):
  always be 1. The output tensor will be of shape (6,6).

  >>> diff = cos_sim_same - tf.ones((6, 6), dtype=tf.dtypes.float32, name=None)
  >>> tf.reduce_sum(diff) == 0
  True
  >>> tf.reduce_sum(diff) == 0 # True
  <tf.Tensor: shape=(), dtype=bool, numpy=True>
  >>> cos_sim_same.shape
  TensorShape([6, 6])

@@ -529,8 +529,8 @@ def cosine_dist(x, y):
  shape of the input tensors are both of shape `(256,512)`, the output tensor will
  be of shape `(256,256)`.
  
  >>> tf.reduce_sum(cos_sim_orth) == 0
  True
  >>> tf.reduce_sum(cos_sim_orth) == 0 # True
  <tf.Tensor: shape=(), dtype=bool, numpy=True> # True
  >>> cos_sim_orth.shape
  TensorShape([256, 256])