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 859 B

123456789101112131415161718192021222324
  1. # -*- coding: utf-8 -*-
  2. # MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
  3. #
  4. # Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
  5. #
  6. # Unless required by applicable law or agreed to in writing,
  7. # software distributed under the License is distributed on an
  8. # "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. from ..core._imperative_rt.core2 import (
  10. set_cpp_apply_const_with_tracing,
  11. set_cpp_apply_with_tracing,
  12. )
  13. from .dtr_config import DTRConfig
  14. from .graph_opt_config import GraphOptimizationConfig
  15. from .sublinear_memory_config import SublinearMemoryConfig
  16. from .tracing import (
  17. apply_const_with_tracing,
  18. apply_with_tracing,
  19. exclude_from_trace,
  20. trace,
  21. )
  22. set_cpp_apply_with_tracing(apply_with_tracing)
  23. set_cpp_apply_const_with_tracing(apply_const_with_tracing)