class_docstr: Subclass of TorchAgent that allows for encoding image features.
  
  Provides flags and utility methods.
class_docstr_tok: ["Subclass","of","TorchAgent","that","allows","for","encoding","image","features",".","Provides","flags","and","utility","methods","."]
code: def __init__(self, opt, shared=None):
      super().__init__(opt, shared)
      self.image_features_dim = opt["image_features_dim"]
      self.image_encoder_num_layers = opt["image_encoder_num_layers"]
      self.n_image_tokens = opt["n_image_tokens"]
      self.n_image_channels = opt["n_image_channels"]
  
file_path: ParlAI/parlai/core/torch_image_agent.py
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  from abc import abstractmethod
  from typing import List
  import torch
  from parlai.core.message import Message
  from parlai.core.torch_agent import Batch, TorchAgent
label_desc: Use image node_id 2 to create a new TorchImageAgent object from inherited base classes: TorchAgent with example: obj = TorchImageAgent(opt, shared)