docstr: Returns ONNX encoder config for `VisionEncoderDecoder` model.
  
  Args:
      encoder_config (`PretrainedConfig`):
          The encoder model's configuration to use when exporting to ONNX.
  
  Returns:
      [`VisionEncoderDecoderEncoderOnnxConfig`]: An instance of the ONNX configuration object
docstr_tok: ["Returns","ONNX","encoder","config","for","`","VisionEncoderDecoder","`","model",".","Args",":","encoder_config","(","`","PretrainedConfig","`",")",":","The","encoder","model","'s","configuration","to","use","when","exporting","to","ONNX",".","Returns",":","[","`","VisionEncoderDecoderEncoderOnnxConfig","`","]",":","An","instance","of","the","ONNX","configuration","object"]
code: def get_encoder_config(
      self, encoder_config: PretrainedConfig
  ) -> OnnxConfig:
      r"""
      Returns ONNX encoder config for `VisionEncoderDecoder` model.
  
      Args:
          encoder_config (`PretrainedConfig`):
              The encoder model's configuration to use when exporting to ONNX.
  
      Returns:
          [`VisionEncoderDecoderEncoderOnnxConfig`]: An instance of the ONNX configuration object
      """
      return VisionEncoderDecoderEncoderOnnxConfig(encoder_config)
  
imports: import copy
  from typing import TYPE_CHECKING, Any, Mapping, Optional, OrderedDict
  from packaging import version
  from ...configuration_utils import PretrainedConfig
  from ...onnx import OnnxConfig
  from ...utils import logging
  from ..auto.configuration_auto import AutoConfig
label_desc: Use image node_id 2 for calling the VisionEncoderDecoderOnnxConfig obj's underlying member method code with example usage: obj.get_encoder_config(encoder_config) and returns: VisionEncoderDecoderEncoderOnnxConfig