GithubHelp home page GithubHelp logo

Comments (14)

peterjc123 avatar peterjc123 commented on May 2, 2024

@lee-man Thanks for taking it a shot. We've pushed fixes for argmax and expand. gather is taking us a bit longer, but we will make it available soon.

from tinyneuralnetwork.

lee-man avatar lee-man commented on May 2, 2024

@peterjc123 Got it. Thanks a lot!

from tinyneuralnetwork.

peterjc123 avatar peterjc123 commented on May 2, 2024

@lee-man gather is supported now. You may have a try.

from tinyneuralnetwork.

lee-man avatar lee-man commented on May 2, 2024

Got an Error (tinynn/converter/operators/torch/aten.py, line 1568):
TypeError: create_attr_tensor() got an unexpected keyword argument 'dtype'.

from tinyneuralnetwork.

peterjc123 avatar peterjc123 commented on May 2, 2024

@lee-man Should be fixed by 10da5c6. Please try again.

from tinyneuralnetwork.

lee-man avatar lee-man commented on May 2, 2024

Some problems with the data type for index:
File "/Users/mli/prj/pose/movenet-pytorch/TinyNeuralNetwork/tinynn/converter/base.py", line 256, in convert
self.init_operations()
File "/Users/mli/prj/pose/movenet-pytorch/TinyNeuralNetwork/tinynn/converter/base.py", line 226, in init_operations
converter.parse(node, attrs, args, self.common_graph)
File "/Users/mli/prj/pose/movenet-pytorch/TinyNeuralNetwork/tinynn/converter/operators/torch/aten.py", line 1661, in parse
self.run(node)
File "/Users/mli/prj/pose/movenet-pytorch/TinyNeuralNetwork/tinynn/converter/operators/torch/base.py", line 135, in run
raise e
File "/Users/mli/prj/pose/movenet-pytorch/TinyNeuralNetwork/tinynn/converter/operators/torch/base.py", line 129, in run
o = func(**kwargs)
RuntimeError: gather_out_cpu(): Expected dtype int64 for index

I check the current type of index, and it's int32.

from tinyneuralnetwork.

lee-man avatar lee-man commented on May 2, 2024

I tried to convert the type manually, and other errors were raised. I think it's due to the complex decoding part of the model I use. I will join the DingTalk group and discuss it with you guys directly. Thanks! @peterjc123

from tinyneuralnetwork.

peterjc123 avatar peterjc123 commented on May 2, 2024

@lee-man Okay. I managed to fixed the type-related issues.

from tinyneuralnetwork.

peterjc123 avatar peterjc123 commented on May 2, 2024

@lee-man I've looked into your model. It seems that you tries to call gather with the index tensor as a variable, which is unsupported at this time.

from tinyneuralnetwork.

lee-man avatar lee-man commented on May 2, 2024

@peterjc123 Got it. Really appreciate your help.

from tinyneuralnetwork.

peterjc123 avatar peterjc123 commented on May 2, 2024

@lee-man I mean this can be fixed. We will do that later.

from tinyneuralnetwork.

lee-man avatar lee-man commented on May 2, 2024

@peterjc123 Great! Looking forward to your update!

from tinyneuralnetwork.

peterjc123 avatar peterjc123 commented on May 2, 2024

@lee-man BTW, could you please share the TorchScript model and the shapes of the inputs so that we can look into it easier? Or, maybe we should communicate with each other via DingTalk?

from tinyneuralnetwork.

peterjc123 avatar peterjc123 commented on May 2, 2024

Now that gather should be fully supported. Let's close this issue.

from tinyneuralnetwork.

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.