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.7 kB

5 years ago
5 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. """
  16. Operators can be used in the construct function of Cell.
  17. Examples:
  18. >>> import mindspore.ops as ops
  19. """
  20. from .primitive import Primitive, PrimitiveWithInfer, PrimitiveWithCheck, prim_attr_register
  21. from .vm_impl_registry import get_vm_impl_fn, vm_impl_registry
  22. from .op_info_register import op_info_register, AkgGpuRegOp, AkgAscendRegOp, AiCPURegOp, TBERegOp, DataType
  23. from .primitive import constexpr
  24. from . import composite, operations, functional
  25. from . import signature
  26. from .composite import *
  27. from .operations import *
  28. from .functional import *
  29. __primitive__ = [
  30. "prim_attr_register", "Primitive", "PrimitiveWithInfer", "PrimitiveWithCheck", "signature"
  31. ]
  32. __all__ = ["get_vm_impl_fn", "vm_impl_registry",
  33. "op_info_register", "AkgGpuRegOp", "AkgAscendRegOp", "AiCPURegOp", "TBERegOp", "DataType",
  34. "constexpr"]
  35. __all__.extend(__primitive__)
  36. __all__.extend(composite.__all__)
  37. __all__.extend(operations.__all__)
  38. __all__.extend(functional.__all__)