parameters: (model, inference_output_type=dtypes.float32)
docstring: Modify model output type.
docstring_summary: Modify model output type.
docstring_tokens: Modify model output type .
function: def _modify_model_output_type(model, inference_output_type=dtypes.float32):
    """Modify model output type."""
    if inference_output_type == dtypes.float32:
      return
  
    if not model.signatureDefs:
      _modify_model_output_type_per_subgraph(model, 0, -1, inference_output_type)
      return
  
    for signature_index, signature_def in enumerate(model.signatureDefs):
      _modify_model_output_type_per_subgraph(model, signature_def.subgraphIndex,
                                             signature_index,
                                             inference_output_type)
function_tokens: def _modify_model_output_type ( model , inference_output_type = dtypes . float32 ) : if inference_output_type == dtypes . float32 : return if not model . signatureDefs : _modify_model_output_type_per_subgraph ( model , 0 , - 1 , inference_output_type ) return for signature_index , signature_def in enumerate ( model . signatureDefs ) : _modify_model_output_type_per_subgraph ( model , signature_def . subgraphIndex , signature_index , inference_output_type )