X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=tasks.py;h=2c2f9140ec337ae5cac4c490a40d97a92fa54fe1;hb=0e1e208852b83f6a3d59e5caabd2f0f1f4bde94e;hp=0ab18233a72e27b5b0b02e96a21abd5009d37ad6;hpb=ce969e8372fb161d86be29042a20b044ee6efe2a;p=picoclvr.git diff --git a/tasks.py b/tasks.py index 0ab1823..2c2f914 100755 --- a/tasks.py +++ b/tasks.py @@ -1459,8 +1459,7 @@ class Grid(Task): nb_train_samples, nb_test_samples, batch_size, - height, - width, + size, logger=None, device=torch.device("cpu"), ): @@ -1468,7 +1467,7 @@ class Grid(Task): self.device = device self.batch_size = batch_size - self.grid_factory = grid.GridFactory(height=height, width=width) + self.grid_factory = grid.GridFactory(size=size) if logger is not None: logger(