mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[4/N] Apply py39 ruff and pyupgrade fixes (#143257)
```torch/fx/passes/annotate_getitem_nodes.py``` was changed to support the new type hinting annotations. Pull Request resolved: https://github.com/pytorch/pytorch/pull/143257 Approved by: https://github.com/justinchuby, https://github.com/albanD
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
# Owner(s): ["module: mkldnn"]
|
||||
import itertools
|
||||
import unittest
|
||||
from typing import NamedTuple, List
|
||||
from typing import NamedTuple
|
||||
|
||||
import torch
|
||||
from torch import nn
|
||||
@ -16,7 +16,7 @@ FUSION_GROUP = 'prim::TensorExprGroup'
|
||||
class PointwisePostOp(NamedTuple):
|
||||
attr : str
|
||||
pointwise_module : nn.Module
|
||||
scalars : List = []
|
||||
scalars : list = []
|
||||
algorithm : str = ""
|
||||
|
||||
CONV_MODULES = {2: torch.nn.Conv2d, 3: torch.nn.Conv3d}
|
||||
|
Reference in New Issue
Block a user