parameters: (m: onnx.ModelProto)
docstring: values of initializers may be stored in float_data or raw_data, if in raw_data, we move them to float_data
      for convenience
      :param m: the model
docstring_summary: values of initializers may be stored in float_data or raw_data, if in raw_data, we move them to float_data
      for convenience
      :param m: the model
docstring_tokens: values of initializers may be stored in float_data or raw_data if in raw_data we move them to float_data for convenience : param m : the model
function: def move_raw_to_float(m: onnx.ModelProto) -> None:
      """
      values of initializers may be stored in float_data or raw_data, if in raw_data, we move them to float_data
      for convenience
      :param m: the model
      """
      for t in m.graph.initializer:
          if t.data_type == onnx.TensorProto.FLOAT:
              if len(t.float_data) == 0:
                  import struct
                  import itertools
                  it = struct.iter_unpack('f', t.raw_data)
                  t.float_data.extend(itertools.chain.from_iterable(it))
                  t.raw_data = bytes(0)
function_tokens: def move_raw_to_float ( m : onnx . ModelProto ) -> None : for t in m . graph . initializer : if t . data_type == onnx . TensorProto . FLOAT : if len ( t . float_data ) == 0 : import struct import itertools it = struct . iter_unpack ( 'f' , t . raw_data ) t . float_data . extend ( itertools . chain . from_iterable ( it ) ) t . raw_data = bytes ( 0 )