[NFC] polish tensor_placement_policy.py code style (#3265)

This commit is contained in:
Camille Zhong
2023-03-27 22:03:46 +08:00
committed by binmakeswell
parent 00778abc48
commit c4a226b729

View File

@@ -1,16 +1,16 @@
import functools
from abc import ABC, abstractmethod
from time import time
from typing import List, Optional
from typing import List, Optional, Type
import torch
from colossalai.gemini.memory_tracer import MemStatsCollector
from colossalai.gemini.stateful_tensor import StatefulTensor
from colossalai.gemini.tensor_utils import colo_model_data_tensor_move_inline, colo_tensor_mem_usage
from colossalai.utils import get_current_device
from colossalai.utils.memory import colo_device_memory_capacity
from colossalai.gemini.tensor_utils import colo_model_data_tensor_move_inline, colo_tensor_mem_usage
from colossalai.gemini.stateful_tensor import StatefulTensor
from colossalai.gemini.memory_tracer import MemStatsCollector
from typing import Type
import functools
class TensorPlacementPolicy(ABC):