Code Monkey home page Code Monkey logo

Comments (3)

abdulazizm avatar abdulazizm commented on August 27, 2024

Noticed that relay.transform.DynamicToStatic() helped to fix the issue as mentioned here -> https://githubmemory.com/repo/Xilinx/pyxir/issues/63

But not in my case

from pyxir.

abdulazizm avatar abdulazizm commented on August 27, 2024

With recent version of TVM (main branch) and Pyxir (0.3.1) getting below error. Hope both implies same ( and inf is not handled which while casting throws overflow err)

My case:
DEBUG:pyxir:relay shape: [-1, 1, 0]
numerator: 159882 denominator: 0 -> inf

File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/pyxir-0.3.1-py3.6-linux-x86_64.egg/pyxir/frontend/tvm/relay_tools/relay_l3_math_and_transform.py", line 348, in reshape
    newshape.append(int(np.prod(input_shape[j:]) / np.prod(relayshape[i+1:])))
OverflowError: cannot convert float infinity to integer
(vitis-ai-tensorflow) Vitis-AI /home/aziza/01_Perception/xilinx/apachetvm_flow/tvm/my_workspace/MaskRCNN > pip show tvm pyxir
Name: tvm
Version: 0.9.dev185+gc7ddb4134
Summary: TVM: An End to End Tensor IR/DSL Stack for Deep Learning Systems
Home-page: https://github.com/apache/tvm
Author: None
Author-email: None
License: UNKNOWN
Location: /home/aziza/01_Perception/xilinx/apachetvm_flow/tvm/python
Requires: attrs, cloudpickle, decorator, numpy, psutil, scipy, synr, tornado
Required-by:
---
Name: pyxir
Version: 0.3.1
Summary: # PyXIR
Home-page: None
Author: None
Author-email: None
License: None
Location: /opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/pyxir-0.3.1-py3.6-linux-x86_64.egg
Requires: numpy, packaging, pydot, h5py
Required-by:

@jornt-xilinx

from pyxir.

abdulazizm avatar abdulazizm commented on August 27, 2024

@jornt-xilinx Seems apache tvm compiles mask rcnn with relay VM. Is it possible to have relayVM with VITIS AI workflow?

https://discuss.tvm.apache.org/t/frontend-pytorch-convert-rcnn-model-from-torch-vision-model/7525/6 masahi confirmed that apache tvm compiles maskrcnn but he is just not sure what VITIS AI does

from pyxir.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.