mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[5/N][Easy] fix typo for usort
config in pyproject.toml
(kown
-> known
): sort torch (#127126)
The `usort` config in `pyproject.toml` has no effect due to a typo. Fixing the typo make `usort` do more and generate the changes in the PR. Except `pyproject.toml`, all changes are generated by `lintrunner -a --take UFMT --all-files`. Pull Request resolved: https://github.com/pytorch/pytorch/pull/127126 Approved by: https://github.com/kit1980 ghstack dependencies: #127122, #127123, #127124, #127125
This commit is contained in:
committed by
PyTorch MergeBot
parent
4fdbaa794f
commit
7763c83af6
@ -3,18 +3,10 @@ import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
import torch
|
||||
import torch.distributed as c10d
|
||||
import torch.distributed.rpc as rpc
|
||||
import torch.multiprocessing as mp
|
||||
|
||||
from data import data_map
|
||||
from metrics.ProcessedMetricsPrinter import ProcessedMetricsPrinter
|
||||
from models import model_map
|
||||
from server import server_map
|
||||
from torch.distributed.rpc import TensorPipeRpcBackendOptions
|
||||
from torch.futures import wait_all
|
||||
from torch.utils.data import DataLoader
|
||||
from trainer import (
|
||||
criterion_map,
|
||||
ddp_hook_map,
|
||||
@ -25,6 +17,14 @@ from trainer import (
|
||||
trainer_map,
|
||||
)
|
||||
|
||||
import torch
|
||||
import torch.distributed as c10d
|
||||
import torch.distributed.rpc as rpc
|
||||
import torch.multiprocessing as mp
|
||||
from torch.distributed.rpc import TensorPipeRpcBackendOptions
|
||||
from torch.futures import wait_all
|
||||
from torch.utils.data import DataLoader
|
||||
|
||||
|
||||
def get_name(rank, args):
|
||||
r"""
|
||||
|
Reference in New Issue
Block a user