parameters: (
      input_image_shape, batch_size, output_size, anchors, config, weights={}
  )
return_statement: return network
docstring: Initializes an MpsGraphAPI for object detection.
docstring_summary: Initializes an MpsGraphAPI for object detection.
docstring_tokens: Initializes an MpsGraphAPI for object detection .
function: def _get_mps_od_net(
      input_image_shape, batch_size, output_size, anchors, config, weights={}
  ):
      """
      Initializes an MpsGraphAPI for object detection.
      """
      network = _MpsGraphAPI(network_id=_MpsGraphNetworkType.kODGraphNet)
  
      c_in, h_in, w_in = input_image_shape
      c_out = output_size
      h_out = h_in // 32
      w_out = w_in // 32
  
      network.init(
          batch_size,
          c_in,
          h_in,
          w_in,
          c_out,
          h_out,
          w_out,
          weights=weights,
          config=config,
      )
      return network
function_tokens: def _get_mps_od_net ( input_image_shape , batch_size , output_size , anchors , config , weights = { } ) : network = _MpsGraphAPI ( network_id = _MpsGraphNetworkType . kODGraphNet ) c_in , h_in , w_in = input_image_shape c_out = output_size h_out = h_in // 32 w_out = w_in // 32 network . init ( batch_size , c_in , h_in , w_in , c_out , h_out , w_out , weights = weights , config = config , ) return network