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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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, MultitypeFuncGraph, add_flags, \
  20. grad, grad_all, grad_all_with_sens, grad_by_list, grad_by_list_with_sens, grad_with_sens, \
  21. core, env_get, tail, zip_operation
  22. from .clip_ops import clip_by_value
  23. from .multitype_ops.add_impl import hyper_add
  24. from .multitype_ops.ones_like_impl import ones_like
  25. from .multitype_ops.zeros_like_impl import zeros_like
  26. __all__ = [
  27. 'grad',
  28. 'grad_by_list_with_sens',
  29. 'grad_all',
  30. 'grad_by_list',
  31. 'grad_all_with_sens',
  32. 'grad_with_sens',
  33. 'env_get',
  34. 'core',
  35. 'add_flags',
  36. 'tail',
  37. 'MultitypeFuncGraph',
  38. 'GradOperation',
  39. 'HyperMap',
  40. 'hyper_add',
  41. 'zeros_like',
  42. 'ones_like',
  43. 'zip_operation',
  44. 'clip_by_value']