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

4 years ago
5 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. Composite operators.
  17. Pre-defined combination of operators.
  18. """
  19. from .base import GradOperation, _Grad, HyperMap, Map, MultitypeFuncGraph, add_flags, \
  20. core, env_get, tail, zip_operation
  21. from .clip_ops import clip_by_value, clip_by_global_norm
  22. from .multitype_ops.add_impl import hyper_add
  23. from .multitype_ops.ones_like_impl import ones_like
  24. from .multitype_ops.zeros_like_impl import zeros_like
  25. from .random_ops import normal, laplace, uniform, gamma, poisson, multinomial
  26. from .math_ops import count_nonzero, tensor_dot, dot, batch_dot, matmul, cummin
  27. from .array_ops import repeat_elements, sequence_mask
  28. __all__ = [
  29. 'env_get',
  30. 'core',
  31. 'add_flags',
  32. 'tail',
  33. 'Map',
  34. 'MultitypeFuncGraph',
  35. 'GradOperation',
  36. 'HyperMap',
  37. 'hyper_add',
  38. 'zeros_like',
  39. 'ones_like',
  40. 'zip_operation',
  41. 'normal',
  42. 'laplace',
  43. 'uniform',
  44. 'gamma',
  45. 'poisson',
  46. 'multinomial',
  47. 'clip_by_value',
  48. 'clip_by_global_norm',
  49. 'count_nonzero',
  50. 'cummin',
  51. 'tensor_dot',
  52. 'dot',
  53. 'batch_dot',
  54. 'repeat_elements',
  55. 'sequence_mask',
  56. 'matmul',
  57. '_Grad']