lhutton1 commented on code in PR #12970:
URL: https://github.com/apache/tvm/pull/12970#discussion_r986067418


##########
src/relay/backend/contrib/ethosn/ethosn_api.cc:
##########
@@ -213,27 +227,29 @@ EthosnError EthosnAPI::QnnFullyConnected(const Expr& 
expr, FullyConnectedParams*
                                       data_data_type, sl::DataFormat::NHWC, 
data_q_info);
 
   // Create weights info
-  const auto* weights_dtype = 
dense->args[1]->checked_type().as<TensorTypeNode>();
+  Constant weights_data = Downcast<Constant>(dense->args[1]);
+  weights_data = TransposeWeights(weights_data, "OI", "IO");

Review Comment:
   I think the issue is that the input here is 2-d so `MakeTranspose` will 
expect a transpose array with only 2 values



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to