parameters: (data_type: NumericType)
docstring: Return an ngraph element type string representation for a Python type or numpy dtype.
docstring_summary: Return an ngraph element type string representation for a Python type or numpy dtype.
docstring_tokens: Return an ngraph element type string representation for a Python type or numpy dtype .
function: def get_element_type_str(data_type: NumericType) -> str:
      """Return an ngraph element type string representation for a Python type or numpy dtype."""
      if data_type is int:
          log.warning("Converting int type of undefined bitwidth to 32-bit ngraph integer.")
          return "i32"
  
      if data_type is float:
          log.warning("Converting float type of undefined bitwidth to 32-bit ngraph float.")
          return "f32"
  
      ng_type = next(
          (ng_type for (ng_type, np_type) in openvino_to_numpy_types_str_map if np_type == data_type),
          None,
      )
      if ng_type:
          return ng_type
  
      raise NgraphTypeError("Unidentified data type %s", data_type)
function_tokens: def get_element_type_str ( data_type : NumericType ) -> str : if data_type is int : log . warning ( "Converting int type of undefined bitwidth to 32-bit ngraph integer." ) return "i32" if data_type is float : log . warning ( "Converting float type of undefined bitwidth to 32-bit ngraph float." ) return "f32" ng_type = next ( ( ng_type for ( ng_type , np_type ) in openvino_to_numpy_types_str_map if np_type == data_type ) , None , ) if ng_type : return ng_type raise NgraphTypeError ( "Unidentified data type %s" , data_type )