code
stringlengths
197
38.4k
apis
list
extract_api
stringlengths
137
20.3k
#!/usr/bin/env python # -*- encoding: utf-8 -*- from asyncio.log import logger from typing import List from torch.nn import Module from torch.nn.modules.loss import _Loss from torch.optim import Optimizer from colossalai.logging import get_dist_logger from torch import Tensor from colossalai.engine.ophooks import reg...
[ "colossalai.logging.get_dist_logger", "colossalai.engine.ophooks.register_ophooks_recursively" ]
[((2942, 2959), 'colossalai.logging.get_dist_logger', 'get_dist_logger', ([], {}), '()\n', (2957, 2959), False, 'from colossalai.logging import get_dist_logger\n'), ((3328, 3388), 'colossalai.engine.ophooks.register_ophooks_recursively', 'register_ophooks_recursively', (['self._model', 'self._ophook_list'], {}), '(self...