class_docstr: Abstract implementation of score function.
      
class_docstr_tok: ["Abstract","implementation","of","score","function","."]
docstr: Compute regularization of entity and relation embeddings.
          
docstr_tok: ["Compute","regularization","of","entity","and","relation","embeddings","."]
code: def get_er_regularization(self, ent_embeds, rel_embeds, args):
      """Compute regularization of entity and relation embeddings."""
      value = paddle.sum(
          ent_embeds.abs().pow(args.reg_norm)
      ) + paddle.sum(rel_embeds.abs().pow(args.reg_norm))
      value = args.reg_coef * value
      return value
  
imports: import math
  import numpy
  from numpy.random import RandomState
  import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddle.nn.functional import log_sigmoid
label_desc: Use image node_id 4 for calling the ScoreFunc obj's underlying member method code with example usage: obj.get_er_regularization(ent_embeds, rel_embeds, args) and returns: value