primitives.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.
  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. from paddle.tensor import ( # noqa: F401
  15. abs,
  16. acos,
  17. acosh,
  18. add,
  19. asin,
  20. asinh,
  21. atan,
  22. atanh,
  23. broadcast_shape,
  24. broadcast_to,
  25. concat,
  26. cos,
  27. cosh,
  28. cumprod,
  29. cumsum,
  30. digamma,
  31. divide,
  32. erf,
  33. erfinv,
  34. exp,
  35. expm1,
  36. fill_constant,
  37. full,
  38. gather,
  39. greater_equal,
  40. lgamma,
  41. log,
  42. log1p,
  43. logcumsumexp,
  44. logit,
  45. logsumexp,
  46. max,
  47. min,
  48. multiply,
  49. ones,
  50. pow,
  51. prod,
  52. reshape,
  53. rsqrt,
  54. sign,
  55. sin,
  56. sinh,
  57. sqrt,
  58. subtract,
  59. sum,
  60. tan,
  61. tanh,
  62. tile,
  63. uniform,
  64. zeros,
  65. )
  66. from paddle.tensor.creation import assign, zeros_like # noqa: F401
  67. from paddle.tensor.manipulation import cast # noqa: F401
  68. from paddle.tensor.math import maximum, minimum # noqa: F401