STT-tensorflow/tensorflow/lite/kernels/internal/tensor_utils.cc
Robert David 9bdcb357b5 Use sse_tensor_utils when SSSE 3 is available instead of just SSE 4.1.
PiperOrigin-RevId: 293209198
Change-Id: I88c70743f6deaff5a6fdb2b4b4a7c5118b3edf63
2020-02-04 13:00:56 -08:00

26 lines
1.1 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.
==============================================================================*/
#include "tensorflow/lite/kernels/internal/tensor_utils.h"
#include "tensorflow/lite/kernels/internal/optimized/neon_check.h"
#if defined(__SSSE3__)
#include "tensorflow/lite/kernels/internal/optimized/sse_tensor_utils.h"
#elif defined(USE_NEON)
#include "tensorflow/lite/kernels/internal/optimized/neon_tensor_utils.h"
#else
#include "tensorflow/lite/kernels/internal/reference/portable_tensor_utils.h"
#endif // __SSSE3__ or USE_NEON