Skip to content

Commit

Permalink
fix typo&code styles
Browse files Browse the repository at this point in the history
  • Loading branch information
statelesshz committed Jul 12, 2023
1 parent 3cb2c3c commit bed1578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accelerate/commands/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ def _validate_launch_command(args):
warned.append(f"\t`--num_processes` was set to a value of `{args.num_processes}`")
if not args.multi_gpu and (
(args.use_xpu and is_xpu_available() and torch.xpu.device_count() > 1)
or (is_npu_available() and torch.npu.device_count > 1)
or (is_npu_available() and torch.npu.device_count() > 1)
or (torch.cuda.device_count() > 1)
):
warned.append(
Expand Down

0 comments on commit bed1578

Please sign in to comment.