docstr: Convert other input/output data types into a dat file, which is
  a text file with the falttened matrix printed out. Note that ' ' is
  assumed to be the delimiter.
docstr_tok: ["Convert","other","input\/output","data","types","into","a","dat","file",",","which","is","a","text","file","with","the","falttened","matrix","printed","out",".","Note","that","'","'","is","assumed","to","be","the","delimiter","."]
code: def __make_dat_file(self, original_path, project_path):
      """
      Convert other input/output data types into a dat file, which is
      a text file with the falttened matrix printed out. Note that ' ' is
      assumed to be the delimiter.
      """
  
      # Take in data from current supported data files
      if original_path[-3:] == "npy":
          data = np.load(original_path)
      else:
          raise Exception("Unsupported input/output data files.")
  
      # Faltten data, just keep first dimension
      data = data.reshape(data.shape[0], -1)
  
      def print_data(f):
          for i in range(data.shape[0]):
              for j in range(data.shape[1]):
                  f.write(str(data[i][j]) + " ")
              f.write("\n")
  
      # Print out in dat file
      with open(project_path, "w") as f:
          print_data(f)
  
imports: import glob
  import os
  import tarfile
  from collections import OrderedDict
  from shutil import copyfile, copytree, rmtree
  import numpy
  import yaml
  from hls4ml.backends import get_backend
  from hls4ml.model.layers import Conv1D, Conv2D, Conv2DBatchnorm, Dense
  from hls4ml.utils.fixed_point_utils import FixedPointEmulator, ceil_log2, uint_to_binary
  from hls4ml.writer.writers import Writer
label_desc: Use image node_id 2 for calling the QuartusWriter obj's underlying member method code with example usage: obj.__make_dat_file(original_path, project_path) without return types