class_docstr: TransR model.
docstr: Share variables for train and test programs.
code: def creat_share_variables(self):
      """
      Share variables for train and test programs.
      """
      entity_embedding = fluid.layers.create_parameter(
          shape=self._ent_shape,
          dtype="float32",
          name=self.ent_name,
          default_initializer=fluid.initializer.Xavier(),
      )
      relation_embedding = fluid.layers.create_parameter(
          shape=self._rel_shape,
          dtype="float32",
          name=self.rel_name,
          default_initializer=fluid.initializer.Xavier(),
      )
      init_values = np.tile(
          np.identity(self._hidden_size, dtype="float32").reshape(-1),
          (self._relation_total, 1),
      )
      transfer_matrix = fluid.layers.create_parameter(
          shape=[
              self._relation_total,
              self._hidden_size * self._hidden_size,
          ],
          dtype="float32",
          name=self._prefix + "transfer_matrix",
          default_initializer=fluid.initializer.NumpyArrayInitializer(
              init_values
          ),
      )
  
      return entity_embedding, relation_embedding, transfer_matrix
  
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 2 for calling the TransR obj's underlying member method code with example usage: obj.creat_share_variables() and returns: entity_embedding,  relation_embedding,  transfer_matrix