Skip to content

Commit

Permalink
datasets load necessary libs and change imports in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
belsten committed Nov 22, 2024
1 parent 32848c3 commit 61cf6c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions sparsecoding/datasets.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import torch
import os
from scipy.io import loadmat
from sparsecoding.transforms.patch import patchify
from torch.utils.data import Dataset

from sparsecoding.priors import Prior
Expand Down
2 changes: 1 addition & 1 deletion tests/inference/common.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import torch

from sparsecoding.priors import L0Prior, SpikeSlabPrior
from sparsecoding.data.datasets.bars import BarsDataset
from sparsecoding.datasets import BarsDataset

torch.manual_seed(1997)

Expand Down

0 comments on commit 61cf6c2

Please sign in to comment.