Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script to help Contributing new templates #316

Open
guptaaryan16 opened this issue Sep 6, 2023 · 0 comments
Open

Script to help Contributing new templates #316

guptaaryan16 opened this issue Sep 6, 2023 · 0 comments
Labels
enhancement New feature or request hacktoberfest Hacktoberfest help wanted Extra attention is needed

Comments

@guptaaryan16
Copy link
Contributor

guptaaryan16 commented Sep 6, 2023

Clear and concise description of the problem

The idea is to provide a new script to make it easy for us to contribute templates to the code generator app. This should be like a python script which can be provided information in the form of a main.py file and helps in creating necessary changes in the code generator app based on the script for the necessary tasks.

Suggested solution

I propose something like this

main.py (to be submitted as template)

### DataLoaders 
train_dataloader = ...
test_dataloader = ...

## model 
class MyModel(nn.module):
      def __init___(self, ):
           pass

## Training Step
def step(engine, batch):
        ....

## Evaluation function
def evaluate():
        ....
   

Now using the comments like data loaders, we can separate the code through a script and then input the code below at specific places in the template and then use it for the template creation as well. This approach seems to be less tedious than making all the changes individually and hoping everything to work

Alternative

Also we can add a template-contributing.md guide that can help people who want to contribute new templates to the existing app.

cc @vfdev-5 @theory-in-progress

@guptaaryan16 guptaaryan16 changed the title Python Script to help Contributing new templates Script to help Contributing new templates Sep 6, 2023
@guptaaryan16 guptaaryan16 added help wanted Extra attention is needed hacktoberfest Hacktoberfest enhancement New feature or request labels Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest Hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant