Home
Blogs
Questions

Home

About Us

Blogs

Questions

Monetize

Post Job

banner

Questions about omegaconf

Read more about omegaconf

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - omegaconf

Is it possible to have a config key be the result of a variable interpolation in Hydra?

Assuming the following config structure: config.yaml |-model | |--default.yaml | |-data |--default.yaml config.yaml : defaults: - model: default - data: default model/default.yaml : ... x_la...
test-img

colobas

python

fb-hydra

omegaconf

Votes: 0

Answers: 1

Latest Answer

Currently this is unspported in Hydra/OmegaConf; values can be interpolations, but keys cannot. As a workaround, consider the following for your data/default.yaml file: ... loaders: label: ${model.x...
test-img

Jasha

use data types or other library-specific variables as arguments in hydra

I would like to use python datatypes - both built-in and imported from libraries such as numpy, tensorflow, etc - as arguments in my hydra configuration. Something like: # config.yaml arg1: np.float3...
test-img

miccio

python

python-3.x

fb-hydra

omegaconf

Votes: 0

Answers: 1

Latest Answer

Does the hydra.utils.get_class function solve this problem for you? # config.yaml arg1: numpy.float32 # note: use "numpy" here, not "np" arg2: tensorflow.float16 # python code ....
test-img

Jasha

Posts

Questions

Blogs

Where knowledge meets opportunity!

About

  • Company
  • Monetize your knowledge
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved