Giter Club home page Giter Club logo

Comments (5)

ksaur avatar ksaur commented on May 25, 2024 1

Was this an API change in a newer version of torch? Because the README example definitely works, or used to!

from hummingbird.

interesaaat avatar interesaaat commented on May 25, 2024

Hi! Just change rfmodel.to('cpu') to rfmodel = rfmodel.to('cpu'). This should work.

from hummingbird.

mshr-h avatar mshr-h commented on May 25, 2024

I think we have to update the readme.

https://github.com/microsoft/hummingbird#examples

# Use Hummingbird to convert the model to PyTorch
model = convert(skl_model, 'pytorch')

# Run predictions on CPU
model.predict(X)

# Run predictions on GPU
model.to('cuda')
model.predict(X)

from hummingbird.

ksaur avatar ksaur commented on May 25, 2024

I was not able to reproduce this issue with the latest (torch==2.1.0), and the example in the documentation still worked as written for me.

@Bobby-youngking can you please post which versions you are using and a bit more info? you shouldn't have to reassign the model

from hummingbird.

ksaur avatar ksaur commented on May 25, 2024

Closing due to inactivity and we cannot repro, please reopen if you still have problems with this.

from hummingbird.

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.