最終更新:2024-11-28 (木) 04:26:36 (10d)  

pulsar2 build
Top / pulsar2 build

ドキュメント

オプション

--target_hardware?

  • type of data: enum
  • required or not: no
  • default value: AX650
  • description: the target soc platform type for model compilation, supports AX650, AX620E, M76H

--npu_mode?

  • 使うNPUコアの数を指定。
  • help
        --npu_mode            npu mode. while ${target_hardware} is AX650, npu mode
                              can be NPU1 / NPU2 / NPU3. while ${target_hardware} is
                              AX620E, npu mode can be NPU1 / NPU2. type: enum.
                              required: false. default: NPU1.
    
  • --npu_mode?
    • type of data: enum
    • required or not: no
    • default value: NPU1
    • description: model compilation mode
  • When the soc platform is AX650, enumeration is supported: NPU1, NPU2, NPU3
  • When the SOC platform is AX620E, enumeration is supported: NPU1, NPU
  • 注意点:--npu_mode? refers to the number of NPU cores used, not the vNPU number, please don’t be confused.

AX620Eの例

  • pulsar2 build --target_hardware AX620E --input model/mobilenetv2-sim.onnx --output_dir output --config config/mobilenet_v2_build_config.json
    • この例だとconfigの中で"npu_mode": "NPU1"を指定している