class_docstr: 用于将weight和原始weight绑定
class_docstr_tok: ["\u7528\u4e8e\u5c06weight\u548c\u539f\u59cbweight\u7ed1\u5b9a"]
code: def __init__(self, weight):
      super().__init__()
      self.weight = weight
  
imports: from typing import Union, Tuple
  import math
  import torch
  from torch import nn
  import torch.nn.functional
  from ..attention import AttentionLayer, MultiHeadAttention
  from ....embeddings.torch.utils import get_embeddings
  from ....embeddings.torch.static_embedding import StaticEmbedding
  from .seq2seq_state import State, LSTMState, TransformerState
label_desc: Use image node_id 1 to create a new TiedEmbedding object from inherited base classes: nn with example: obj = TiedEmbedding(weight)