To extend the mapping capabilities of metadata.json to have very specific features for each templates #308
Labels
enhancement
New feature or request
hacktoberfest
Hacktoberfest
help wanted
Extra attention is needed
needs-discussion
Clear and concise description of the problem
Right now, the
metadata.json
works like thisAnd we just import all these options and assume that all templates are going to have them.
This causes two specific issues, as given below
Suggested solution
We propose two approaches to solve this problem, namely
templates
sub option for eachtraining option
which contains all templates for that specific training option and check it during rendering of the templates. This works as follows:Then we can selectively choose which option will be available for each template. This approach makes it easier to track each template and option. The only problem of this approach seems to be hard for us to specify an option like a specific argparser or backend.
data_options.json
file in the templates. This file will contain all options related to each template that can may contain sub options check as well. This approach makes more sense while contributing new templates as you need to add all options you want to configure directly.This will require the following changes
This approach seems a bit complex but can provide more control over the options and templates. Also it can help introduce template specific features like having specific evaluation functions and other metadata options.
Additional context
This issue was discuss in our weekly meeting this week.
cc @vfdev-5 @theory-in-progress
The text was updated successfully, but these errors were encountered: