STT-tensorflow/tensorflow/lite/kernels/fully_connected.h
Yunlu Li 8a9c9b6af7 Add one example of sparse FullyConnected kernel.
PiperOrigin-RevId: 293450452
Change-Id: I4ad38bc8f871291a6db11b80b44660f5ae9e6421
2020-02-05 14:25:02 -08:00

39 lines
1.5 KiB
C++

/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
// Forward declares registrations for specific FC layer implementations. Do not
// include this header if you are fine with any FC implementation, include
// builtin_op_kernels.h instead. This implementation-specific registration is
// only available for FC, as these versions are explicitly tested and supported.
#ifndef TENSORFLOW_LITE_KERNELS_FULLY_CONNECTED_H_
#define TENSORFLOW_LITE_KERNELS_FULLY_CONNECTED_H_
#include "tensorflow/lite/c/common.h"
namespace tflite {
namespace ops {
namespace builtin {
TfLiteRegistration* Register_FULLY_CONNECTED_REF();
TfLiteRegistration* Register_FULLY_CONNECTED_GENERIC_OPT();
TfLiteRegistration* Register_FULLY_CONNECTED_PIE();
TfLiteRegistration* Register_FULLY_CONNECTED_SPARSE_REF();
TfLiteRegistration* Register_FULLY_CONNECTED_SPARSE_OPT();
} // namespace builtin
} // namespace ops
} // namespace tflite
#endif // TENSORFLOW_LITE_KERNELS_FULLY_CONNECTED_H_