Skip to content

Commit

Permalink
DataSet class import was removed, the mini dataset does not inherent …
Browse files Browse the repository at this point in the history
…from that
  • Loading branch information
MinaKh committed May 30, 2024
1 parent dd2baec commit c799c41
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/test_aug_caching.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import os

import numpy as np
from torch.utils.data import Dataset

from tonic.audio_augmentations import RandomPitchShift
from tonic.audio_transforms import AmplitudeScale, FixLength
from tonic.cached_dataset import Aug_DiskCachedDataset, load_from_disk_cache


class mini_dataset(Dataset):
class mini_dataset:
def __init__(self) -> None:
super().__init__()
np.random.seed(0)
self.data = np.random.rand(10, 16000)
self.transform = None
Expand Down

0 comments on commit c799c41

Please sign in to comment.