You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "Comet-hash (via GitHub)" <gi...@apache.org> on 2024/12/15 16:43:48 UTC

[I] [Bug] TensorFlow Model Conversion Error and Build Error on TVM Runtime for Ultra96v2 [tvm]

Comet-hash opened a new issue, #17559:
URL: https://github.com/apache/tvm/issues/17559

   We are looking for an expert with experience in running AI models on Xilinx-based FPGAs using TVM. We need someone who can provide tips for resolving issues through video tutorials or documentation. If necessary, we are open to remote support or virtual meetings to address the problems.
   Our goal is to run AI models trained in TensorFlow on a Xilinx Ultra96v2 FPGA board. Following the instructions provided in the linked guide, we are executing AI models compiled with TVM using the Vitis AI DPU.
   The tools and versions currently being used are as follows:
   •	PYNQ: Version 3.0.1
   •	Vitis AI: Version 2.5
   •	TVM: Version 0.19
   Below are the issues we need help resolving:
   1.	TensorFlow Model Conversion Error
   Following the example (https://tvm.apache.org/docs/how_to/compile_models/from_tensorflow.html), when converting a TensorFlow AI model into a relay model using the tvm.relay.frontend.from_tensorflow function, we encounter the error:
   "TypeError: dense() got an unexpected keyword argument 'grad_a'."
   We believe this issue arises because of differences in TensorFlow model arguments introduced with the transition from TensorFlow 1 to TensorFlow 2 (https://github.com/tensorflow/tensorflow/issues/24573). Additionally, it seems that the TVM version being used does not support TensorFlow 2 (https://discuss.tvm.apache.org/t/how-to-import-native-tensorflow2-trained-model-into-tvm-relay/8847/3). Could you confirm the TensorFlow version compatible with the TVM version we are using?
   
   2.	Build Error on TVM Runtime for Ultra96v2
   Following the steps in the linked guide (https://tvm.apache.org/docs/how_to/deploy/vitis_ai.html), we built TVM on the Ultra96v2. However, when importing the library with import tvm.relay as relay, the error occurs:
   "AttributeError: module 'tvm.relay._ffi_api' has no attribute 'Any'."
   We suspect this is due to a dependency issue, where a specific library might be missing during runtime installation (https://discuss.tvm.apache.org/t/attributeerror-when-import-tvm-relay/3305/5). If this is the case, could you provide additional setup instructions or recommend compatible versions? If this assumption is incorrect, please advise on how to identify the root cause and resolve this issue.
   
   


-- 
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: commits-unsubscribe@tvm.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] TensorFlow Model Conversion Error and Build Error on TVM Runtime for Ultra96v2 [tvm]

Posted by "mshr-h (via GitHub)" <gi...@apache.org>.
mshr-h commented on issue #17559:
URL: https://github.com/apache/tvm/issues/17559#issuecomment-2803554547

   Closing since Vitis AI integration is phased out.


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] TensorFlow Model Conversion Error and Build Error on TVM Runtime for Ultra96v2 [tvm]

Posted by "mshr-h (via GitHub)" <gi...@apache.org>.
mshr-h closed issue #17559: [Bug] TensorFlow Model Conversion Error and Build Error on TVM Runtime for Ultra96v2
URL: https://github.com/apache/tvm/issues/17559


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org