Giter Club home page Giter Club logo

mynet's People

Contributors

huangshiqing avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

geogreff

mynet's Issues

关于tool/tvm/relay_reverse.py中的line的分类

你好,你开发的这个工具很棒,非常感谢~

有一点想确认一下,在tool/tvm/relay_reverse.py的这个对relay.txt每一行分类的代码中,type=2的情况应该是当前行不包含(的情况才对,因此是不是应该修改成# 2: "%7 = %3.0" ~~or "%99 = (%97, %98);"~~才对呢?看上去%99 = (%97, %98);"像是应该被放在type=1的case。

        for line in f:
            # net_inputs = list()
            # line = "  %114 = subtract(1f /* ty=float32 */, %90) /* ty=Tensor[(1, 12, 50), float32] */;"
            # step 0. get type
            # -1: unkonw
            # 0: "def @main(%INPUT__0..."
            # 1: "%0 = (%INPUT__0, %INPUT__1)"
            # 2: "%7 = %3.0" or "%99 = (%97, %98);"
            # 3: "%9 = nn.scale("
            # 4: "nn.fully_connected(%144..."
            # 5: "}"
            type = -1
            if "def" in line:
                type = 0
            elif "}" in line:
                type = 5
            else:
                index = line.find('(')
                if index == -1:
                    type = 2
                else:
                    index2 = line.find('=')
                    if index-index2 == 2:
                        type = 1
                    else:
                        if line[2] != '%':
                            type = 4
                        else:
                            type = 3

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.