Giter Club home page Giter Club logo

Comments (8)

vishwajit-vishnu avatar vishwajit-vishnu commented on August 11, 2024

There's no place where a default seed value is stored in ivy. So can you please add the default seed value for ivy and then we can use the same for torch frontend

from ivy.

AnnaTz avatar AnnaTz commented on August 11, 2024

There's no place where a default seed value is stored in ivy. So can you please add the default seed value for ivy and then we can use the same for torch frontend

Hi @vishwajit-vishnu, I don't think we are able to add support for this currently. First we will need to implement an ivy Generator class, which is on our roadmap.

from ivy.

a0m0rajab avatar a0m0rajab commented on August 11, 2024

Hi @AnnaTz, for this task, is both initial_seed and get_rng_state related to the generator class?
I was thinking to have a global variable for seed here at this file: https://github.com/unifyai/ivy/blob/0d9e03bad71aa6aa2b61118c6e5b6bfff3a51fea/ivy/functional/ivy/random.py and return it, would this work or should we wait till you have the generator class implemented?

from ivy.

AnnaTz avatar AnnaTz commented on August 11, 2024

Hi @AnnaTz, for this task, is both initial_seed and get_rng_state related to the generator class? I was thinking to have a global variable for seed here at this file: https://github.com/unifyai/ivy/blob/0d9e03bad71aa6aa2b61118c6e5b6bfff3a51fea/ivy/functional/ivy/random.py and return it, would this work or should we wait till you have the generator class implemented?

Hi @a0m0rajab, it wouldn't be enough to create a global variable for a seed. Instead we need to implement an ivy generator class and then a torch frontend generator class that will inherit from the ivy one. There are people in our team already looking into that. I would suggest you pick another ToDo list to contribute to.

from ivy.

a0m0rajab avatar a0m0rajab commented on August 11, 2024

Thank you for this information! @AnnaTz

from ivy.

a0m0rajab avatar a0m0rajab commented on August 11, 2024

@AnnaTz side note, would be adding toDo_internal label to this and removing the toDo label be okay? Since it seems to miss only those two functions and the others have a PR opened for it. I just get curious about this labels 😄

from ivy.

AnnaTz avatar AnnaTz commented on August 11, 2024

@AnnaTz side note, would be adding toDo_internal label to this and removing the toDo label be okay? Since it seems to miss only those two functions and the others have a PR opened for it. I just get curious about this labels 😄

Good idea 😅

from ivy.

a0m0rajab avatar a0m0rajab commented on August 11, 2024

Thank you for that!

from ivy.

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.