(func)
| 44 | |
| 45 | |
| 46 | def with_empty_init(func): |
| 47 | @wraps(func) |
| 48 | def wrapper(*args, **kwargs): |
| 49 | with EmptyInitOnDevice('cpu'): |
| 50 | return func(*args, **kwargs) |
| 51 | return wrapper |
| 52 | |
| 53 | |
| 54 |
nothing calls this directly
no outgoing calls
no test coverage detected