• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 Huawei Technologies Co., Ltd
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14# ============================================================================
15"""Callback related classes and functions."""
16
17from ._callback import Callback
18from ._callback import CallbackManager as _CallbackManager
19from ._callback import InternalCallbackParam as _InternalCallbackParam
20from ._callback import RunContext
21from ._callback import checkpoint_cb_for_save_op as _checkpoint_cb_for_save_op
22from ._callback import set_cur_net as _set_cur_net
23from ._checkpoint import CheckpointConfig
24from ._checkpoint import CheckpointManager as _CheckpointManager
25from ._checkpoint import ModelCheckpoint
26from ._loss_monitor import LossMonitor
27from ._time_monitor import TimeMonitor
28from ._summary_collector import SummaryCollector
29from ._lr_scheduler_callback import LearningRateScheduler
30
31__all__ = ["Callback", "LossMonitor", "TimeMonitor", "ModelCheckpoint",
32           "SummaryCollector", "CheckpointConfig", "RunContext", "LearningRateScheduler"]
33