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

5 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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, HyperMap, Map, MultitypeFuncGraph, add_flags, \
  20. core, env_get, tail, zip_operation
  21. from .clip_ops import clip_by_value
  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
  27. __all__ = [
  28. 'env_get',
  29. 'core',
  30. 'add_flags',
  31. 'tail',
  32. 'MultitypeFuncGraph',
  33. 'GradOperation',
  34. 'HyperMap',
  35. 'hyper_add',
  36. 'zeros_like',
  37. 'ones_like',
  38. 'zip_operation',
  39. 'normal',
  40. 'laplace',
  41. 'uniform',
  42. 'gamma',
  43. 'poisson',
  44. 'multinomial',
  45. 'clip_by_value',
  46. 'count_nonzero']