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

5 years ago
5 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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, custom_info_register, AkgGpuRegOp, AkgAscendRegOp, AiCPURegOp, \
  23. TBERegOp, CpuRegOp, CustomRegOp, DataType
  24. from .primitive import constexpr
  25. from . import composite, operations, functional
  26. from . import signature
  27. from .composite import *
  28. from .operations import *
  29. from .functional import *
  30. __primitive__ = [
  31. "prim_attr_register", "Primitive", "PrimitiveWithInfer", "PrimitiveWithCheck", "signature"
  32. ]
  33. __all__ = ["get_vm_impl_fn", "vm_impl_registry",
  34. "op_info_register", "custom_info_register", "AkgGpuRegOp", "AkgAscendRegOp", "AiCPURegOp", "TBERegOp",
  35. "CpuRegOp", "CustomRegOp", "DataType",
  36. "constexpr"]
  37. __all__.extend(__primitive__)
  38. __all__.extend(composite.__all__)
  39. __all__.extend(operations.__all__)
  40. __all__.extend(functional.__all__)