NpuDispatch typedef

NpuDispatch = ({String dir, bool stagesWeightBanks, bool? useHwMasking})

What an NPU attempt hands LiteRT-LM: the dispatch_lib_dir its vendor prepared, what to set use_hw_masking_for_npu to (npuHwMasking; null leaves LiteRT-LM's default), and whether the load's weight banks are to be claimed (npuStagesWeightBanks).

Implementation

typedef NpuDispatch = ({
  String dir,
  bool? useHwMasking,
  bool stagesWeightBanks,
});