Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0f82489
Added functionality for merging of common and specific templates
theory-in-progress Jun 17, 2023
b3a6a3f
Merge common and Specific code-templates
theory-in-progress Jun 20, 2023
8f67e46
Handle error code-tag is present in a file but file is missing in Com…
theory-in-progress Jun 20, 2023
bc688be
Update branch with changes from main
theory-in-progress Jun 21, 2023
83f4051
Merge branch 'pytorch-ignite:main' into merge-common-specific
theory-in-progress Jun 21, 2023
463d004
Code format
theory-in-progress Jun 21, 2023
b044f5e
Changed code tag to `from_template_common`
theory-in-progress Jun 21, 2023
bb04373
Refactoring the redundant/repeating code in utils.py
theory-in-progress Jun 21, 2023
5ed9d8c
Fix lint of utils.py
theory-in-progress Jun 21, 2023
c3d1eed
Refactoring the redundant/repeating code in config.yaml
theory-in-progress Jun 21, 2023
e474921
Refactoring the redundant/repeating code in main.py
theory-in-progress Jun 21, 2023
ac621bf
MOdify lint options
theory-in-progress Jun 21, 2023
6d9415f
Deleting the script check_copies.py and the command in workflow
theory-in-progress Jun 22, 2023
d9888dd
Add lint in tests and modify min_lint in lint
theory-in-progress Jun 22, 2023
7703a72
Merge branch 'main' into merge-common-specific
vfdev-5 Jun 22, 2023
c5c9ae0
Modify render with replace using js on vision-classification template
theory-in-progress Jun 22, 2023
bb5b106
Merge branch 'merge-common-specific' of github.com:theory-in-progress…
theory-in-progress Jun 22, 2023
4f965b1
Install formatting tools in tests job
theory-in-progress Jun 22, 2023
da90ef3
Change code tags from `#:::- from_template_common :::#` to `#::= from…
theory-in-progress Jun 22, 2023
23e2385
Modifying trainers.py to include the if else statements for unused im…
theory-in-progress Jun 22, 2023
d738012
Removes any usort skip statements in the final code
theory-in-progress Jun 23, 2023
ff45072
Added usort skip statements for certain imports in trainers.py
theory-in-progress Jun 23, 2023
38c0f80
Modified tests, imports, workflow
theory-in-progress Jun 23, 2023
733b9ea
Added type hints for functions in template-vision-segmentation/traine…
theory-in-progress Jun 23, 2023
eb75d1d
Formatting modifications
theory-in-progress Jun 23, 2023
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Modifying trainers.py to include the if else statements for unused im…
…ports
  • Loading branch information
theory-in-progress committed Jun 22, 2023
commit 23e23852f28df4bfea5f491c1abf783c03f29db8
5 changes: 5 additions & 0 deletions src/templates/template-text-classification/trainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

import ignite.distributed as idist
import torch

#::: if(it.deterministic) { :::#
#::: } else { :::#
from ignite.engine import DeterministicEngine, Engine, Events

#::: } :::#
from ignite.metrics.metric import Metric
from torch import nn
from torch.cuda.amp import autocast, GradScaler
Expand Down
5 changes: 5 additions & 0 deletions src/templates/template-vision-classification/trainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

import ignite.distributed as idist
import torch

#::: if(it.deterministic) { :::#
#::: } else { :::#
from ignite.engine import DeterministicEngine, Engine, Events

#::: } :::#
from torch.cuda.amp import autocast
from torch.nn import Module
from torch.optim import Optimizer
Expand Down
5 changes: 5 additions & 0 deletions src/templates/template-vision-dcgan/trainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

import ignite.distributed as idist
import torch

#::: if(it.deterministic) { :::#
#::: } else { :::#
from ignite.engine import DeterministicEngine, Engine, Events

#::: } :::#
from torch.cuda.amp import autocast
from torch.nn import Module
from torch.optim import Optimizer
Expand Down