Code Monkey home page Code Monkey logo

Comments (2)

omry avatar omry commented on July 30, 2024 1

Keep in mind that whatever decision we have should either be friendly to what configen supports now or be added there.
I don't think we can do torch_config.optim.AdamConf right now.

see module_path_pattern.

from hydra-torch.

romesco avatar romesco commented on July 30, 2024

Alright, until someone can raise an issue, we are going to stick with: hydra_configs.<module_path>. If others create their own configen configs such as: https://github.com/romesco/hydra-lightning for example, the idea is to ensure the package is set up as a compatible native namespace package. This means the module dir name is config and there is no __init__.py at the top level.

If those conventions are adhered to, many structured configs from different projects can be imported along side each other like in this example:

# structured config imports
from hydra_configs.torch.optim import AdamConf
from hydra_configs.torchvision.datasets import DatasetFolderConf
from hydar_configs.pytorch_lightning.trainer import TrainerConf

from
https://github.com/romesco/hydra-lightning/blob/50707694e7da1bab7753fb80402be7f26427f5f5/examples/mnist_00.py#L20-L22

from hydra-torch.

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.