Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 5.57 KB

File metadata and controls

26 lines (22 loc) · 5.57 KB

List of HALO Command Line Options:

Command line options of HALO:

Option Descriptions
--help Display available options.
--target [cxx|cc] cxx: Generate the C++11 souce code.
cc: Generate the C99 source code.
-o <filename> Specify the output file. Weight file is automatically generated with '.bin' suffix.
--batch-size <number> Specify/override the batch size of inputs. It assumes the first dimension of input is for batch number.
--exec-mode=[compile|interpret] Specify the ODLA execution mode. Default is the compile mode.
--entry-func-name=<name> Specify the name of generated function. Default is the model's file name.
--reorder-data-layout=[channel-first,channel-last] Specify the model to be compiled into the specific data layout. By default, the generated ODLA function uses the same data layout (NHWC or NCHW) as the input model. Transpose operation might be inserted for input nodes.
--remove-input-transpose Remove the transpose operation on input nodes. This option is usually used together with --reorder-data-layout.
--remove-output-transpose Remove the transpose operation on output nodes. This option is usually used together with --reorder-data-layout.
--inputs=<name> Specify the input nodes.
--input-shape=<shape> Specify input shape. E.g.: --input-shape=foo:1x3x10 --input-shape=bar:5x4. It overrides the shape defined in the model file.
--outputs=<name> Specify the output nodes. By default, HALO uses all the sink nodes as outputs. This option with --inputs can be used to compile a partial part of the computation.
--fuse-conv-bias Specify to fuse convolution and bias.
--fuse-matmul-bias Specify to fuse matmul and bias.
--emit-value-reset Specify to emit odla_ReleaseValue() whenever an ODLA value is no longer needed under the interpreter mode.
--emit-value-id-as-int Specify integer as ODLA value id. By default, HALO generates string-based value id.
--emit-data-as-c Generate the weigths file as C file, instead of default ELF file.
--print-mem-stats Display the estimated memory usage.