Skip to content

Commit 6140181

Browse files
committed
tensor
1 parent 9520979 commit 6140181

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/loggers/test_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def __init__(self, hparams: Dict[str, Any]) -> None:
308308
class _Test:
309309
...
310310

311-
same_params = {1: 1, "2": 2, "three": 3.0, "test": _Test(), "4": torch.Tensor(4)}
311+
same_params = {1: 1, "2": 2, "three": 3.0, "test": _Test(), "4": torch.tensor(4)}
312312
model = TestModel(same_params)
313313
dm = TestDataModule(same_params)
314314

@@ -350,7 +350,7 @@ class _Test:
350350
trainer.fit(model, dm)
351351

352352
tensor_params = deepcopy(same_params)
353-
tensor_params.update({"4": torch.Tensor(3)})
353+
tensor_params.update({"4": torch.tensor(3)})
354354
model = TestModel(same_params)
355355
dm = TestDataModule(tensor_params)
356356
trainer = Trainer(

0 commit comments

Comments
 (0)