Hydra: [Feature Request]

Created on 15 Oct 2020  路  2Comments  路  Source: facebookresearch/hydra

馃殌 Feature Request

When using initialize(), I want to be able to pass an absolute path.

Motivation

I always prefer to avoid hardcode and depending on the script that is calling the initialize method, the relative path will vary. Furthermore, if one moves the script to another location, then the relative path will potentially have to be modified.

Pitch

Being that the source code of the initialize method explicitly asks for relative path using, I assume there must have been good reasons to set it that way.

However I think that an approach such as the one described in the following link allows for both portability and flexibility in the path definitions:
https://stackoverflow.com/a/25389715

I'm sure there was more to the thought process behind this design so I'll be really glad to understand it!!

question

All 2 comments

Did you look at the documentation of initialize?
https://hydra.cc/docs/experimental/compose_api#initialization-methods

By the way, please set a title to your question.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vict0rsch picture vict0rsch  路  4Comments

jan-matthis picture jan-matthis  路  3Comments

erip picture erip  路  4Comments

nathansomavarapu picture nathansomavarapu  路  3Comments

lkhphuc picture lkhphuc  路  3Comments