class_docstr: Link prediction network for graphs / knowledge graphs
class_docstr_tok: ["Link","prediction","network","for","graphs","\/","knowledge","graphs"]
code: def LINE(heads, tails):
      x = heads * tails
      score = x.sum(dim=1)
      return score
  
file_path: graphvite/python/graphvite/application/network.py
imports: from __future__ import absolute_import
  import types
  import numpy
  import torch
  from torch import nn
label_desc: Use image node_id 3 for calling the LinkPredictor obj's underlying member method code with example usage: obj.LINE(heads, tails) and returns: score