Skip to content

Commit

Permalink
Merge pull request #55 from tsugumi-sys/fix-arg-type
Browse files Browse the repository at this point in the history
fix arg-type error
  • Loading branch information
tsugumi-sys authored Jan 7, 2024
2 parents bd98192 + 9d63edf commit 146eb36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions pipelines/moving_mnist_pipeline/data_loader.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from typing import Tuple

import torch
from torch.utils.data import DataLoader, Dataset, random_split
from torch.utils.data import DataLoader, Dataset, Subset, random_split
from torchvision.datasets import MovingMNIST


class VideoPredictionDataset(Dataset):
def __init__(self, data: torch.Tensor, input_frames: int = 10):
def __init__(self, data: Subset, input_frames: int = 10):
self.data = data
self.input_frames = input_frames

Expand Down
8 changes: 1 addition & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,4 @@ split-on-trailing-comma = true
namespace_packages = true
ignore_missing_imports = true
python_version = "3.11"
disable_error_code = [
"arg-type",
"assignment",
"override",
"index",
"var-annotated",
]
disable_error_code = ["assignment", "override", "index", "var-annotated"]

0 comments on commit 146eb36

Please sign in to comment.