class_docstr: Generic encoder interface.
docstr: :return: The representation size of this encoder.
docstr_tok: [":","return",":","The","representation","size","of","this","encoder","."]
code: def get_num_hidden(self) -> int:
      """
      :return: The representation size of this encoder.
      """
      raise NotImplementedError()
  
imports: from abc import abstractmethod
  from dataclasses import dataclass, field
  from typing import List, Tuple, Optional, Union
  import torch
  import sockeye.constants
  from .None import config
  from .None import layers
  from .None import transformer
label_desc: Use image node_id 1 for calling the Encoder obj's underlying member method code with example usage: obj.get_num_hidden() without return types