class_docstr: Sequence-to-sequence base class.
class_docstr_tok: ["Sequence-to-sequence","base","class","."]
docstr: Init embeddings.
docstr_tok: ["Init","embeddings","."]
code: def init_embeddings(self, hparams, scope):
      """Init embeddings."""
      (
          self.embedding_encoder,
          self.embedding_decoder,
      ) = model_helper.create_emb_for_encoder_and_decoder(
          share_vocab=hparams.share_vocab,
          src_vocab_size=self.src_vocab_size,
          tgt_vocab_size=self.tgt_vocab_size,
          src_embed_size=self.num_units,
          tgt_embed_size=self.num_units,
          num_enc_partitions=hparams.num_enc_emb_partitions,
          num_dec_partitions=hparams.num_dec_emb_partitions,
          src_vocab_file=hparams.src_vocab_file,
          tgt_vocab_file=hparams.tgt_vocab_file,
          src_embed_file=hparams.src_embed_file,
          tgt_embed_file=hparams.tgt_embed_file,
          use_char_encode=hparams.use_char_encode,
          scope=scope,
          embed_type=hparams.embedding_type,
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import abc
  import collections
  import tensorflow
  from tensorflow.contrib.model_pruning import get_masks, get_thresholds
  from tensorflow.contrib.model_pruning.python import pruning
  from tensorflow.contrib.model_pruning.python.layers import core_layers
  from .None import model_helper
  from .utils import misc_utils, iterator_utils
label_desc: Use image node_id 7 for calling the BaseModel obj's underlying member method code with example usage: obj.init_embeddings(hparams, scope) without return types