class_docstr: TransR model.
docstr: Score function of TransR
code: def score_with_l2_normalize(self, head, rel, tail):
      """
      Score function of TransR
      """
      head = fluid.layers.l2_normalize(head, axis=-1)
      rel = fluid.layers.l2_normalize(rel, axis=-1)
      tail = fluid.layers.l2_normalize(tail, axis=-1)
      score = head + rel - tail
      return score
  
file_path: PGL/legacy/examples/pgl-ke/model/TransR.py
imports: import numpy
  import paddle.fluid
  from .Model import Model
  from .utils import lookup_table
label_desc: Use image node_id 3 for calling the TransR obj's underlying member method code with example usage: obj.score_with_l2_normalize(head, rel, tail) and returns: score