Unverified Commit c47c9196 authored by Jerry Jiarui XU's avatar Jerry Jiarui XU Committed by GitHub
Browse files

[Docs] Add header for files (#1181)

* [Docs] Add header for files

* change to OpenMMLab

* add headers for .cpp, .cu, .h, .cuh

* replace Open-MMLab with OpenMMLab
parent 04daea42
# Copyright (c) Open-MMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved.
from ...dist_utils import master_only from ...dist_utils import master_only
from ..hook import HOOKS from ..hook import HOOKS
from .base import LoggerHook from .base import LoggerHook
......
# Copyright (c) Open-MMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved.
import numbers import numbers
from math import cos, pi from math import cos, pi
......
# Copyright (c) Open-MMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved.
import torch import torch
from .hook import HOOKS, Hook from .hook import HOOKS, Hook
......
# Copyright (c) OpenMMLab. All rights reserved.
import mmcv import mmcv
from .hook import HOOKS, Hook from .hook import HOOKS, Hook
from .lr_updater import annealing_cos, annealing_linear, format_param from .lr_updater import annealing_cos, annealing_linear, format_param
......
# Copyright (c) Open-MMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved.
import copy import copy
from collections import defaultdict from collections import defaultdict
from itertools import chain from itertools import chain
......
# Copyright (c) Open-MMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved.
import warnings import warnings
from typing import Callable, List, Optional, Union from typing import Callable, List, Optional, Union
......
# Copyright (c) Open-MMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved.
from .hook import HOOKS, Hook from .hook import HOOKS, Hook
......
# Copyright (c) Open-MMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved.
from ..dist_utils import allreduce_params from ..dist_utils import allreduce_params
from .hook import HOOKS, Hook from .hook import HOOKS, Hook
......
# Copyright (c) Open-MMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved.
import os.path as osp import os.path as osp
import platform import platform
import shutil import shutil
......
# Copyright (c) Open-MMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved.
from collections import OrderedDict from collections import OrderedDict
import numpy as np import numpy as np
......
# Copyright (c) OpenMMLab. All rights reserved.
from .builder import (OPTIMIZER_BUILDERS, OPTIMIZERS, build_optimizer, from .builder import (OPTIMIZER_BUILDERS, OPTIMIZERS, build_optimizer,
build_optimizer_constructor) build_optimizer_constructor)
from .default_constructor import DefaultOptimizerConstructor from .default_constructor import DefaultOptimizerConstructor
......
# Copyright (c) OpenMMLab. All rights reserved.
import copy import copy
import inspect import inspect
......
# Copyright (c) OpenMMLab. All rights reserved.
import warnings import warnings
import torch import torch
......
# Copyright (c) Open-MMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved.
from enum import Enum from enum import Enum
......
# Copyright (c) Open-MMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved.
import os import os
import random import random
import sys import sys
......
# Copyright (c) OpenMMLab. All rights reserved.
# flake8: noqa # flake8: noqa
from .init_plugins import is_tensorrt_plugin_loaded, load_tensorrt_plugin from .init_plugins import is_tensorrt_plugin_loaded, load_tensorrt_plugin
from .preprocess import preprocess_onnx from .preprocess import preprocess_onnx
......
# Copyright (c) OpenMMLab. All rights reserved.
import ctypes import ctypes
import glob import glob
import os import os
......
# Copyright (c) OpenMMLab. All rights reserved.
import warnings import warnings
import onnx import onnx
......
# flake8: noqa # flake8: noqa
# Copyright (c) Open-MMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved.
from .config import Config, ConfigDict, DictAction from .config import Config, ConfigDict, DictAction
from .misc import (check_prerequisites, concat_list, deprecated_api_warning, from .misc import (check_prerequisites, concat_list, deprecated_api_warning,
import_modules_from_strings, is_list_of, import_modules_from_strings, is_list_of,
......
# Copyright (c) Open-MMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved.
import ast import ast
import copy import copy
import os import os
......
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