Skip to content

Commit 2140638

Browse files
authored
[API compatibility] Add ops.py (PaddlePaddle#78800)
* [Compat] c++ sink exp_ * [Compat] c++ sink * [Compat] Inplace C++ sink * [Compat] delete exp_ in __init__.py * Delete ops.py and modify some dir * Add ops.py
1 parent 636fa2e commit 2140638

1 file changed

Lines changed: 66 additions & 0 deletions

File tree

python/paddle/tensor/ops.py

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Copyright (c) 2022 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 __future__ import annotations
15+
16+
from paddle._C_ops import ( # noqa: F401
17+
abs,
18+
abs_,
19+
acos,
20+
acos_,
21+
acosh,
22+
acosh_,
23+
asin,
24+
asin_,
25+
asinh,
26+
asinh_,
27+
atan,
28+
atan_,
29+
atanh,
30+
atanh_,
31+
ceil,
32+
ceil_,
33+
cos,
34+
cos_,
35+
cosh,
36+
cosh_,
37+
erf,
38+
erf_,
39+
exp,
40+
exp_,
41+
expm1,
42+
expm1_,
43+
floor,
44+
floor_,
45+
reciprocal,
46+
reciprocal_,
47+
round,
48+
round_,
49+
rsqrt,
50+
rsqrt_,
51+
scale as _scale,
52+
sigmoid,
53+
sigmoid_,
54+
sin,
55+
sin_,
56+
sinh,
57+
sinh_,
58+
sqrt,
59+
sqrt_,
60+
square,
61+
square_,
62+
tan,
63+
tan_,
64+
)
65+
66+
__all__ = []

0 commit comments

Comments
 (0)