(*args, **kwargs)
| 200 | |
| 201 | def _wrap_func(f): |
| 202 | def _execute_by_gpu_num(*args, **kwargs): |
| 203 | num_avail_gpu = get_accelerator().device_count() |
| 204 | if num_avail_gpu >= min_gpus: |
| 205 | f(*args, **kwargs) |
| 206 | |
| 207 | return _execute_by_gpu_num |
| 208 |
nothing calls this directly
no test coverage detected
searching dependent graphs…