parameters: (tflite_enum_type)
return_statement: return tf_type
docstring: Converts tflite enum type (eg: 0) to tf type (eg: tf.float32).
docstring_summary: Converts tflite enum type (eg: 0) to tf type (eg: tf.float32).
docstring_tokens: Converts tflite enum type ( eg : 0 ) to tf type ( eg : tf . float32 ) .
function: def _convert_tflite_enum_type_to_tf_type(tflite_enum_type):
      """Converts tflite enum type (eg: 0) to tf type (eg: tf.float32)."""
      tf_type = _MAP_TFLITE_ENUM_TO_TF_TYPES.get(tflite_enum_type)
      if tf_type is None:
          raise ValueError(
              "Unsupported enum {}. The valid map of enum to tf.dtype is : {}".format(
                  tflite_enum_type, _MAP_TFLITE_ENUM_TO_TF_TYPES
              )
          )
      return tf_type
function_tokens: def _convert_tflite_enum_type_to_tf_type ( tflite_enum_type ) : tf_type = _MAP_TFLITE_ENUM_TO_TF_TYPES . get ( tflite_enum_type ) if tf_type is None : raise ValueError ( "Unsupported enum {}. The valid map of enum to tf.dtype is : {}" . format ( tflite_enum_type , _MAP_TFLITE_ENUM_TO_TF_TYPES ) ) return tf_type