class_docstr: Embedding Entities and Relations for Learning and Inference in Knowledge Bases.
  https://arxiv.org/abs/1412.6575
class_docstr_tok: ["Embedding","Entities","and","Relations","for","Learning","and","Inference","in","Knowledge","Bases",".","https",":","\/\/arxiv.org\/abs\/1412.6575"]
code: def __call__(self, head, rel, tail):
      score = head * rel * tail
      score = paddle.sum(score, axis=-1)
      return score
  
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 2 for calling the DistMultScore obj's underlying member method code with example usage: obj.__call__(head, rel, tail) and returns: score