__init__.py 1023 B

12345678910111213141516171819202122
  1. # -------------------------------------------------------------------------
  2. # Copyright (c) 2021-2022, NVIDIA Corporation & Affiliates. All rights reserved.
  3. #
  4. # This work is made available under the Nvidia Source Code License.
  5. # To view a copy of this license, visit
  6. # https://github.com/NVlabs/GroupViT/blob/main/LICENSE
  7. #
  8. # Written by Jiarui Xu
  9. # -------------------------------------------------------------------------
  10. from .checkpoint import auto_resume_helper, load_checkpoint, save_checkpoint
  11. from .config import get_config
  12. from .logger import get_logger
  13. from .lr_scheduler import build_scheduler
  14. from .misc import build_dataset_class_tokens, data2cuda, get_batch_size, get_grad_norm, parse_losses, reduce_tensor
  15. from .optimizer import build_optimizer
  16. __all__ = [
  17. 'get_config', 'get_logger', 'build_optimizer', 'build_scheduler', 'load_checkpoint', 'save_checkpoint',
  18. 'auto_resume_helper', 'reduce_tensor', 'get_grad_norm', 'get_batch_size', 'data2cuda', 'parse_losses',
  19. 'build_dataset_class_tokens'
  20. ]