docstr: Write the weights into header files
  
  Args:
      model (ModelGraph): the hls4ml model.
docstr_tok: ["Write","the","weights","into","header","files","Args",":","model","(","ModelGraph",")",":","the","hls4ml","model","."]
code: def write_weights(self, model):
      """Write the weights into header files
  
      Args:
          model (ModelGraph): the hls4ml model.
      """
      for layer in model.get_layers():
          for weights in layer.get_weights():
              self.print_array_to_cpp(
                  weights, model.config.get_output_dir()
              )
  
imports: import glob
  import os
  import tarfile
  from collections import OrderedDict
  from shutil import copyfile, copytree, rmtree
  import numpy
  import yaml
  from hls4ml.writer.writers import Writer
label_desc: Use image node_id 8 for calling the VivadoWriter obj's underlying member method code with example usage: obj.write_weights(model) without return types