Skip to content

Enabling XNNPACK changes the output. #45237

@kafan1986

Description

@kafan1986

System information

  • OS Platform and Distribution: Android
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: All android
  • TensorFlow installed from (source or binary): Binary
  • TensorFlow version (use command below): v2.3
  • Python version: N/A
  • Bazel version (if compiling from source): N/A
  • GCC/Compiler version (if compiling from source): N/A
  • CUDA/cuDNN version: N/A
  • GPU model and memory: N/A

Describe the current behavior
Running a computer vision model for emotion detection. The output is as expected when XNN is disabled but if I enable tfliteOptions.setUseXNNPACK(true) then the output is incorrect and totally different.

Describe the expected behavior
Output should be same for both XNN enabled and non-XNN option.

I have attached inference class files and model files below.

ClassFiles.zip
emotion_fp16t.tflite.zip

Metadata

Metadata

Assignees

Labels

TF 2.3Issues related to TF 2.3comp:liteTF Lite related issuestype:bugBug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions