| 295 | } |
| 296 | |
| 297 | engine::runtime::SessionOptions build_session_options( |
| 298 | const JsonValue & case_value, |
| 299 | engine::core::BackendType backend_type, |
| 300 | int device, |
| 301 | int threads) { |
| 302 | engine::runtime::SessionOptions options; |
| 303 | options.backend.type = backend_type; |
| 304 | options.backend.device = device; |
| 305 | options.backend.threads = threads; |
| 306 | options.options = json_string_map(case_value.find("session_options")); |
| 307 | return options; |
| 308 | } |
| 309 | |
| 310 | engine::runtime::TaskSpec build_task_spec(const JsonValue & case_value) { |
| 311 | return engine::runtime::TaskSpec{ |
no test coverage detected