You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 1.5 kB

12345678910111213141516171819202122232425262728293031
  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. from ._callback import Callback
  17. from ._callback import CallbackManager as _CallbackManager
  18. from ._callback import InternalCallbackParam as _InternalCallbackParam
  19. from ._callback import RunContext
  20. from ._callback import checkpoint_cb_for_save_op as _checkpoint_cb_for_save_op
  21. from ._callback import set_cur_net as _set_cur_net
  22. from ._checkpoint import CheckpointConfig
  23. from ._checkpoint import CheckpointManager as _CheckpointManager
  24. from ._checkpoint import ModelCheckpoint
  25. from ._loss_monitor import LossMonitor
  26. from ._time_monitor import TimeMonitor
  27. from ._summary_collector import SummaryCollector
  28. __all__ = ["Callback", "LossMonitor", "TimeMonitor", "ModelCheckpoint",
  29. "SummaryCollector", "CheckpointConfig", "RunContext"]