Skip to content

Commit

Permalink
turn off XNNPACK for armv7l
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Mar 18, 2023
1 parent e1b4bae commit fd5c005
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ find_package(absl REQUIRED)
if(DEFINED ENV{TARGET_ARCH})
if("$ENV{TARGET_ARCH}" MATCHES "armv7.*")
set(CMAKE_SYSTEM_PROCESSOR "armv7l" CACHE STRING "Updates CMAKE_SYSTEM_PROCESSOR")
set(TFLITE_ENABLE_XNNPACK OFF CACHE BOOL "Disable XNNPACK in TensorFlow Lite for armv7l")
elseif("$ENV{TARGET_ARCH}" MATCHES "arm")
if(DEFINED ENV{TARGET_CPU})
if("$ENV{TARGET_CPU}" STREQUAL "cortex_a53" OR "$ENV{TARGET_CPU}" STREQUAL "cortex_a57")
Expand Down

0 comments on commit fd5c005

Please sign in to comment.