mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-10 13:30:19 +00:00
[misc] update pre-commit and run all files (#4752)
* [misc] update pre-commit * [misc] run pre-commit * [misc] remove useless configuration files * [misc] ignore cuda for clang-format
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
# for PyTorch 1.11 compatibility uses
|
||||
from typing import Dict, List, Tuple, Union
|
||||
|
||||
import torch
|
||||
from torch.fx import GraphModule, Node
|
||||
from torch.fx import Node
|
||||
|
||||
from ..._compatibility import compatibility
|
||||
|
||||
@@ -19,7 +17,7 @@ def calculate_fwd_in(n: Node) -> bool:
|
||||
Returns:
|
||||
save_fwd_in (bool): the result of `save_fwd_in`
|
||||
"""
|
||||
return n.meta['save_fwd_in']
|
||||
return n.meta["save_fwd_in"]
|
||||
|
||||
|
||||
@compatibility(is_backward_compatible=True)
|
||||
@@ -45,4 +43,4 @@ def calculate_fwd_out(n: Node) -> int:
|
||||
Returns:
|
||||
fwd_out (int): the result of `fwd_out`
|
||||
"""
|
||||
return n.meta['fwd_mem_out']
|
||||
return n.meta["fwd_mem_out"]
|
||||
|
Reference in New Issue
Block a user