toMap method

Map<String, String> toMap()

Converts to the key-value map expected by the ONNX Runtime generic API.

Implementation

Map<String, String> toMap() {
  if (numThreads <= 0) return const {};
  return {'intra_op_num_threads': numThreads.toString()};
}