Usage

To generate a VGF file, run:

./build/model-converter --input ${INPUT_TOSA} --output ${OUTPUT_VGF}

To generate a TOSA flatbuffer file, run:

./build/model-converter --tosa-flatbuffer --input ${INPUT_TOSA} --output ${OUTPUT_TOSA_FB}

For more information, see the help output:

./build/model-converter --help
Usage: ./model-converter [--help] [--version] [--input VAR] [--output VAR] [--tosa-flatbuffer] [--tosa-flatbuffer-schema VAR] [--dump-mlir] [--emit-debug-info] [--require-static-shape] [--experimental-analysis] [--type-narrowing VAR]

Optional arguments:
  -h, --help                shows help message and exits 
  -v, --version             prints version information and exits 
  -i, --input               the input file to read TOSA FlatBuffer or TOSA MLIR data from [nargs=0..1] [default: "-"]
  -o, --output              the output file to write VGF data to [nargs=0..1] [default: "-"]
  --tosa-flatbuffer         write tosa FlatBuffer instead of VGF 
  --tosa-flatbuffer-schema  path to the tosa FlatBuffer schema [nargs=0..1] [default: ""]
  --dump-mlir               Dump MLIR between each pass to std error 
  --emit-debug-info         Produce debug info instructions in SPIR-V assembly 
  --require-static-shape    Require all tensors to be ranked and have a specified shape. Terminate on deviation. 
  --experimental-analysis   Print analysis output (what operator lower and which errors out) for the input. [EXPERIMENTAL] 
  --type-narrowing          Perform type-narrowing to all operator operands/results from fp32 -> fp16 [nargs=0..1] [default: "none"]