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_NN_OPS_H_ 19 #define TENSORFLOW_C_EXPERIMENTAL_OPS_NN_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 SparseSoftmaxCrossEntropyWithLogits(AbstractContext* ctx, 28 AbstractTensorHandle* const features, 29 AbstractTensorHandle* const labels, 30 AbstractTensorHandle** loss, 31 AbstractTensorHandle** backprop, 32 const char* name = nullptr); 33 34 Status ReluGrad(AbstractContext* ctx, AbstractTensorHandle* const gradients, 35 AbstractTensorHandle* const features, 36 AbstractTensorHandle** backprops, const char* name = nullptr); 37 38 Status Relu(AbstractContext* ctx, AbstractTensorHandle* const features, 39 AbstractTensorHandle** activations, const char* name = nullptr); 40 41 Status BiasAdd(AbstractContext* ctx, AbstractTensorHandle* const value, 42 AbstractTensorHandle* const bias, AbstractTensorHandle** output, 43 const char* data_format = "NHWC", const char* name = nullptr); 44 45 Status BiasAddGrad(AbstractContext* ctx, 46 AbstractTensorHandle* const out_backprop, 47 AbstractTensorHandle** output, 48 const char* data_format = "NHWC", 49 const char* name = nullptr); 50 51 } // namespace ops 52 } // namespace tensorflow 53 54 #endif // TENSORFLOW_C_EXPERIMENTAL_OPS_NN_OPS_H_ 55