mirror of https://github.com/hpcaitech/ColossalAI
10 lines
400 B
Python
10 lines
400 B
Python
from ... import META_COMPATIBILITY
|
|
if META_COMPATIBILITY:
|
|
from .opcount import flop_mapping
|
|
from .tensor import MetaTensor
|
|
from .profiler import profile_function, profile_method, profile_module, _profile
|
|
else:
|
|
from .experimental import meta_profiler_function, meta_profiler_module, profile_function, profile_method, profile_module
|
|
|
|
from .memory import parameter_size, activation_size
|