1 | /* Copyright 2015 The TensorFlow 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 | ==============================================================================*/ |
15 | |
16 | #include "tensorflow/core/framework/common_shape_fns.h" |
17 | #include "tensorflow/core/framework/numeric_op.h" |
18 | #include "tensorflow/core/framework/op.h" |
19 | #include "tensorflow/core/framework/shape_inference.h" |
20 | |
21 | namespace tensorflow { |
22 | |
23 | #define UNARY_REAL() \ |
24 | Input("x: T") \ |
25 | .Output("y: T") \ |
26 | .Attr("T: {bfloat16, half, float, double}") \ |
27 | .SetShapeFn(shape_inference::UnchangedShape) |
28 | |
29 | REGISTER_OP("Dawsn").UNARY_REAL(); |
30 | REGISTER_OP("Expint").UNARY_REAL(); |
31 | REGISTER_OP("FresnelCos").UNARY_REAL(); |
32 | REGISTER_OP("FresnelSin").UNARY_REAL(); |
33 | REGISTER_OP("Spence").UNARY_REAL(); |
34 | |
35 | // Bessel functions |
36 | |
37 | REGISTER_OP("BesselI0").UNARY_REAL(); |
38 | REGISTER_OP("BesselI1").UNARY_REAL(); |
39 | REGISTER_OP("BesselI0e").UNARY_REAL(); |
40 | REGISTER_OP("BesselI1e").UNARY_REAL(); |
41 | |
42 | REGISTER_OP("BesselK0").UNARY_REAL(); |
43 | REGISTER_OP("BesselK1").UNARY_REAL(); |
44 | REGISTER_OP("BesselK0e").UNARY_REAL(); |
45 | REGISTER_OP("BesselK1e").UNARY_REAL(); |
46 | |
47 | REGISTER_OP("BesselJ0").UNARY_REAL(); |
48 | REGISTER_OP("BesselJ1").UNARY_REAL(); |
49 | REGISTER_OP("BesselY0").UNARY_REAL(); |
50 | REGISTER_OP("BesselY1").UNARY_REAL(); |
51 | |
52 | } // namespace tensorflow |
53 |