class_docstr: Complex Embeddings for Simple Link Prediction.
  https://arxiv.org/abs/1606.06357
class_docstr_tok: ["Complex","Embeddings","for","Simple","Link","Prediction",".","https",":","\/\/arxiv.org\/abs\/1606.06357"]
code: def __call__(self, head, rel, tail):
      re_head, im_head = paddle.chunk(head, chunks=2, axis=-1)
      re_tail, im_tail = paddle.chunk(tail, chunks=2, axis=-1)
      re_rel, im_rel = paddle.chunk(rel, chunks=2, axis=-1)
  
      score = (
          re_head * re_tail * re_rel
          + im_head * im_tail * re_rel
          + re_head * im_tail * im_rel
          - im_head * re_tail * im_rel
      )
      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 ComplExScore obj's underlying member method code with example usage: obj.__call__(head, rel, tail) and returns: score