class_docstr: KG embedding regularizers.
docstr: Compute regularization for input embeddings.
  
  Args:
    x: Tensor of size batch_size x embedding_dimension to regularize.
  
  Returns:
    Regularization term.
docstr_tok: ["Compute","regularization","for","input","embeddings",".","Args",":","x",":","Tensor","of","size","batch_size","x","embedding_dimension","to","regularize",".","Returns",":","Regularization","term","."]
code: def __call__(self, x):
      """Compute regularization for input embeddings.
  
      Args:
        x: Tensor of size batch_size x embedding_dimension to regularize.
  
      Returns:
        Regularization term.
      """
      if not self.reg_weight:
          return tf.keras.backend.constant(0.0)
      else:
          return self.reg_weight * self.compute_norm(x)
  
imports: import abc
  import tensorflow
label_desc: Use image node_id 2 for calling the KGRegularizer obj's underlying member method code with example usage: obj.__call__(x) and returns: tf, unknown