parameters: (self, cb_params)
docstring: Only support to collect image data.
docstring_summary: Only support to collect image data.
docstring_tokens: Only support to collect image data .
function: def _collect_input_data(self, cb_params):
          """Only support to collect image data."""
          if not self._is_allowed_to_collect_input_data(cb_params):
              return
  
          input_data = getattr(cb_params, 'train_dataset_element', None)
          if isinstance(input_data, (list, tuple)) and input_data:
              input_data = input_data[0]
          try:
              self._record.add_value(PluginEnum.IMAGE.value, 'input_data/auto', input_data)
          except (TypeError, ValueError):
              logger.warning('The input data of network are not image, so will not collect by SummaryCollector.')
              self._collect_specified_data['collect_input_data'] = False
              return
function_tokens: def _collect_input_data ( self , cb_params ) : if not self . _is_allowed_to_collect_input_data ( cb_params ) : return input_data = getattr ( cb_params , 'train_dataset_element' , None ) if isinstance ( input_data , ( list , tuple ) ) and input_data : input_data = input_data [ 0 ] try : self . _record . add_value ( PluginEnum . IMAGE . value , 'input_data/auto' , input_data ) except ( TypeError , ValueError ) : logger . warning ( 'The input data of network are not image, so will not collect by SummaryCollector.' ) self . _collect_specified_data [ 'collect_input_data' ] = False return