accelerate
8031e24e - refactor: Use `with` in Accelerator.autocast()instead of ` __enter__()` and` __exit__()` for more elegant style. (#3767)

Commit
210 days ago
refactor: Use `with` in Accelerator.autocast()instead of ` __enter__()` and` __exit__()` for more elegant style. (#3767) * refactor: Use ` with` in `Accelerator.autocast()`instead of `__enter__()` and `__exit__()`for more elegant style. * Apply style fixes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Parents
Loading