mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Apply ufmt linter to all py files under torchgen (#81570)
Previous batches: * https://github.com/pytorch/pytorch/pull/81285 * https://github.com/pytorch/pytorch/pull/81335 We have multiple batches here to minimize merge conflicts and reviewing process. Once everything has been formatted by ufmt (black+usort), the current black linter will be removed. Pull Request resolved: https://github.com/pytorch/pytorch/pull/81570 Approved by: https://github.com/ezyang
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
from pathlib import Path
|
||||
from itertools import chain
|
||||
from pathlib import Path
|
||||
|
||||
from torch.jit._shape_functions import (
|
||||
shape_compute_graph_mapping,
|
||||
bounded_compute_graph_mapping,
|
||||
shape_compute_graph_mapping,
|
||||
)
|
||||
|
||||
SHAPE_HEADER = r"""
|
||||
|
Reference in New Issue
Block a user