code: def __init__(self, cfg):
      super(GCN, self).__init__()
  
      if cfg.dim_strategy == "cat":
          cfg.input_size = cfg.word_dim + 2 * cfg.pos_dim
      else:
          cfg.input_size = cfg.word_dim
  
      self.embedding = Embedding(cfg)
      self.gcn = GCNBlock(cfg)
      self.fc = nn.Linear(cfg.hidden_size, cfg.num_relations)
  
file_path: DeepKE/src/deepke/relation_extraction/standard/models/GCN.py
imports: import os
  import sys
  import torch
  import torch.nn
  from .None import BasicModule
  from module import Embedding
  from module import GCN
  from utils import seq_len_to_mask
label_desc: Use image node_id 1 to create a new GCN object from inherited base classes: BasicModule with example: obj = GCN(cfg)