armnn icon indicating copy to clipboard operation
armnn copied to clipboard

TfLiteArmnnDelegate: Exception (FullyConnectedLayer: TensorShape set on OutputSlot[0] does not match the infer

Open luchangli03 opened this issue 2 years ago • 3 comments

terminating with uncaught exception of type armnn::Exception: TfLiteArmnnDelegate: Exception (FullyConnectedLayer: TensorShape set on OutputSlot[0] does not match the infer red shape. : [1,512,768] != [512,768]) caught from optimize. Aborted

model: FullyConnected with input shapes of [1,512,768] x [768,768]

luchangli03 avatar Sep 06 '22 09:09 luchangli03

Hi @luchangli03 ,

What version of ArmNN/Compute Library are you using?

If you are using v22.05 or v22.08,

Could try this option:

     *    Option key: "allow-expanded-dims" \n
     *    Possible values: ["true"/"false"] \n
     *    Description: If true will disregard dimensions with a size of 1 when validating tensor shapes but tensor
     *                 sizes must still match. \n
     *                 This is an Experimental parameter that is incompatible with "infer-output-shape". \n
     *                 This parameter may be removed in a later update.

ArmRyan avatar Sep 07 '22 10:09 ArmRyan

Hi @luchangli03 ,

What version of ArmNN/Compute Library are you using?

If you are using v22.05 or v22.08,

Could try this option:

     *    Option key: "allow-expanded-dims" \n
     *    Possible values: ["true"/"false"] \n
     *    Description: If true will disregard dimensions with a size of 1 when validating tensor shapes but tensor
     *                 sizes must still match. \n
     *                 This is an Experimental parameter that is incompatible with "infer-output-shape". \n
     *                 This parameter may be removed in a later update.

armnn-22.05.01

luchangli03 avatar Sep 08 '22 08:09 luchangli03

Does the option mentioned in the comment above help fix the issue?

ArmRyan avatar Sep 12 '22 08:09 ArmRyan

Closing due to lack of activity, please reopen if you are still having the issue.

Thanks, Francis.

FrancisMurtagh-arm avatar Jan 13 '23 11:01 FrancisMurtagh-arm