armnn icon indicating copy to clipboard operation
armnn copied to clipboard

"Armnn Error: Cycle detected in graph at function LoadGraphDef" error while loading tensorflow binary model

Open krgor opened this issue 7 years ago • 2 comments

Hi,

OS: Android 7.1 Armnn: v18.11

Problem Description: Failed while loading the tensorflow binary model

I have modified tests/TfMobileNet-Armnn/TfMobileNet-Armnn.cpp ssdlite.diff.zip to load another tensorflow model binary and then ran the test.

It gives error as below: $ LD_LIBRARY_PATH=/data/android_nn /data/android_nn/TfMobileNet-Armnn --data-dir=/data/android_nn/data_mobilenet/ --model-dir=/data/android_nn/data_mobilenet/

WARNING: linker: /data/android_nn/libarmnnTfParser.so: unused DT entry: type 0xf arg 0x10d33f ArmNN v20181100

Armnn Error: Cycle detected in graph at function LoadGraphDef [/home/Project/armnn-devenv/armnn/src/armnnTfParser/TfParser.cpp:2448]

I have downloaded the tensorflow binary from here. I want to use frozen_inference_graph.pb to get loaded via armnn.

Am I missing something? I appreciate if someone can give some hint.

Regards, KGor

krgor avatar Jan 13 '19 10:01 krgor

Hi @krgor it seems likely that this model is using something not supported yet in the Tensorflow parser. You can see documentation about what we support here: https://github.com/ARM-software/armnn/blob/branches/armnn_18_11/src/armnnTfParser/TensorFlowSupport.md

MatthewARM avatar Jan 14 '19 17:01 MatthewARM

@MatthewARM, Thanks for the update. You are right. Some of the layer mentioned in the Graph is not supproted by the Tensorflow parser. We can close the ticket.

krgor avatar Jan 17 '19 15:01 krgor