Don't define Neon* functions when USE_NEON define is missing.

PiperOrigin-RevId: 254098359
This commit is contained in:
A. Unique TensorFlower 2019-06-19 16:47:20 -07:00 committed by TensorFlower Gardener
parent 835bcfba8f
commit 6b3ae06ec6

View File

@ -27,6 +27,8 @@ limitations under the License.
namespace tflite {
namespace tensor_utils {
#ifdef USE_NEON
// Multiply a matrix by a batch vector, and store results in a batch-size
// vector.
void NeonMatrixBatchVectorMultiplyAccumulate(const float* matrix, int m_rows,
@ -119,6 +121,8 @@ void NeonVectorShiftLeft(float* vector, int v_size, float shift_value);
void NeonReductionSumVector(const float* input_vector, float* output_vector,
int output_size, int reduction_size);
#endif // USE_NEON
} // namespace tensor_utils
} // namespace tflite