Commit 204ca2f0 authored by dayellow's avatar dayellow Committed by binmakeswell
Browse files

[NFC] polish colossalai/fx/profiler/experimental/profiler_module/embedding.py code style (#3256)


Co-authored-by: default avatarMinghao Huang <huangminghao@luchentech.com>
parent 0fbadce7
from typing import Tuple
import torch
from ..registry import meta_profiler_module
......@@ -8,4 +10,4 @@ def torch_nn_embedding(self: torch.nn.Embedding, input: torch.Tensor) -> Tuple[i
# nn.Embedding is a dictionary lookup, so technically it has 0 FLOPs. (https://discuss.pytorch.org/t/correct-way-to-calculate-flops-in-model/67198/6)
flops = 0
macs = 0
return flops, macs
\ No newline at end of file
return flops, macs
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment