Skip to content

Commit

Permalink
epochs to batches, also revert trying to make custom resnet
Browse files Browse the repository at this point in the history
  • Loading branch information
v-chen_data committed Nov 29, 2024
1 parent eafe347 commit dd39ec3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/algorithms/algorithm_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,19 +207,19 @@
'model': (
composer_resnet,
{
'model_name': 'resnet18',
'model_name': 'resnet50',
'num_classes': 2,
},
),
'dataset': (
RandomImageDataset,
{
'shape': (3, 32, 32),
'shape': (3, 224, 224),
},
),
'kwargs': {
'stochastic_method': 'residual',
'target_layer_name': 'BasicBlock',
'stochastic_method': 'block',
'target_layer_name': 'ResNetBottleneck',
'drop_rate': 0.2,
'drop_distribution': 'linear',
'drop_warmup': '0.0dur',
Expand Down
2 changes: 1 addition & 1 deletion tests/algorithms/test_algorithms_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_algorithm_trains(alg_cls: type[Algorithm]):
trainer = Trainer(
model=model,
train_dataloader=dataloader,
max_duration='1ep',
max_duration='1ba',
algorithms=alg_cls(**alg_kwargs),
)
trainer.fit()
Expand Down

0 comments on commit dd39ec3

Please sign in to comment.