1 /* Copyright 2021 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 // This file is MACHINE GENERATED! Do not edit. 17 18 #ifndef TENSORFLOW_C_EXPERIMENTAL_OPS_MATH_OPS_H_ 19 #define TENSORFLOW_C_EXPERIMENTAL_OPS_MATH_OPS_H_ 20 21 #include "tensorflow/c/eager/abstract_context.h" 22 #include "tensorflow/c/eager/abstract_tensor_handle.h" 23 24 namespace tensorflow { 25 namespace ops { 26 27 Status Mul(AbstractContext* ctx, AbstractTensorHandle* const x, 28 AbstractTensorHandle* const y, AbstractTensorHandle** z, 29 const char* name = nullptr); 30 31 Status Conj(AbstractContext* ctx, AbstractTensorHandle* const input, 32 AbstractTensorHandle** output, const char* name = nullptr); 33 34 Status AddV2(AbstractContext* ctx, AbstractTensorHandle* const x, 35 AbstractTensorHandle* const y, AbstractTensorHandle** z, 36 const char* name = nullptr); 37 38 Status MatMul(AbstractContext* ctx, AbstractTensorHandle* const a, 39 AbstractTensorHandle* const b, AbstractTensorHandle** product, 40 bool transpose_a = false, bool transpose_b = false, 41 const char* name = nullptr); 42 43 Status Neg(AbstractContext* ctx, AbstractTensorHandle* const x, 44 AbstractTensorHandle** y, const char* name = nullptr); 45 46 Status Sum(AbstractContext* ctx, AbstractTensorHandle* const input, 47 AbstractTensorHandle* const reduction_indices, 48 AbstractTensorHandle** output, bool keep_dims = false, 49 const char* name = nullptr); 50 51 Status Sub(AbstractContext* ctx, AbstractTensorHandle* const x, 52 AbstractTensorHandle* const y, AbstractTensorHandle** z, 53 const char* name = nullptr); 54 55 Status Div(AbstractContext* ctx, AbstractTensorHandle* const x, 56 AbstractTensorHandle* const y, AbstractTensorHandle** z, 57 const char* name = nullptr); 58 59 Status DivNoNan(AbstractContext* ctx, AbstractTensorHandle* const x, 60 AbstractTensorHandle* const y, AbstractTensorHandle** z, 61 const char* name = nullptr); 62 63 Status Exp(AbstractContext* ctx, AbstractTensorHandle* const x, 64 AbstractTensorHandle** y, const char* name = nullptr); 65 66 Status Sqrt(AbstractContext* ctx, AbstractTensorHandle* const x, 67 AbstractTensorHandle** y, const char* name = nullptr); 68 69 Status SqrtGrad(AbstractContext* ctx, AbstractTensorHandle* const y, 70 AbstractTensorHandle* const dy, AbstractTensorHandle** z, 71 const char* name = nullptr); 72 73 Status Log1p(AbstractContext* ctx, AbstractTensorHandle* const x, 74 AbstractTensorHandle** y, const char* name = nullptr); 75 76 } // namespace ops 77 } // namespace tensorflow 78 79 #endif // TENSORFLOW_C_EXPERIMENTAL_OPS_MATH_OPS_H_ 80