Shortcuts

Source code for asteroid.utils.test_utils

import torch
from torch.utils import data


[docs]class DummyDataset(data.Dataset): def __init__(self): self.inp_dim = 10 self.out_dim = 10 def __len__(self): return 20 def __getitem__(self, idx): return torch.randn(1, self.inp_dim), torch.randn(1, self.out_dim)
Read the Docs v: v0.3.3
Versions
latest
stable
v0.3.3
v0.3.2
v0.3.1
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.