parameters: (self, input_a, input_b)
return_statement: return cos_sim
docstring: operation
docstring_summary: operation
docstring_tokens: operation
function: def ops(self, input_a, input_b):
          """
          operation
          """
          norm_a = tf.nn.l2_normalize(input_a, dim=1)
          norm_b = tf.nn.l2_normalize(input_b, dim=1)
          cos_sim = tf.expand_dims(tf.reduce_sum(tf.multiply(norm_a, norm_b), 1), -1)
          return cos_sim
function_tokens: def ops ( self , input_a , input_b ) : norm_a = tf . nn . l2_normalize ( input_a , dim = 1 ) norm_b = tf . nn . l2_normalize ( input_b , dim = 1 ) cos_sim = tf . expand_dims ( tf . reduce_sum ( tf . multiply ( norm_a , norm_b ) , 1 ) , - 1 ) return cos_sim