Converts to the key-value map expected by the ONNX Runtime generic API.
Map<String, String> toMap() { if (numThreads <= 0) return const {}; return {'intra_op_num_threads': numThreads.toString()}; }