Skip to content

Commit

Permalink
chore: fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed Oct 6, 2021
1 parent e62f77e commit d970a2b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/integration/torch/test_torch_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import torch.nn as nn

from finetuner.tuner.pytorch import PytorchTuner
from finetuner.toydata import generate_fashion_match as fmdg
from finetuner.toydata import generate_fashion_match
from finetuner.toydata import generate_qa_match


Expand All @@ -27,8 +27,10 @@ def test_simple_sequential_model(tmpdir, params, head_layer):

# fit and save the checkpoint
pt.fit(
train_data=lambda: fmdg(num_pos=10, num_neg=10, num_total=params['num_train']),
eval_data=lambda: fmdg(
train_data=lambda: generate_fashion_match(
num_pos=10, num_neg=10, num_total=params['num_train']
),
eval_data=lambda: generate_fashion_match(
num_pos=10, num_neg=10, num_total=params['num_eval'], is_testset=True
),
epochs=params['epochs'],
Expand Down

0 comments on commit d970a2b

Please sign in to comment.