Skip to content

Commit

Permalink
chore: simplify imports
Browse files Browse the repository at this point in the history
  • Loading branch information
walln committed Oct 2, 2024
1 parent 55ecb44 commit 24c4cb7
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 14 deletions.
1 change: 1 addition & 0 deletions src/loadax/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from loadax.dataset.dataset import Dataset as Dataset
from loadax.dataset.huggingface import HuggingFaceDataset as HuggingFaceDataset
from loadax.dataset.partial_dataset import PartialDataset as PartialDataset
from loadax.dataset.sampled_dataset import SampledDataset as SampledDataset
from loadax.dataset.sharded_dataset import ShardedDataset as ShardedDataset
from loadax.dataset.shuffled_dataset import Shuffleable as Shuffleable
from loadax.dataset.simple import SimpleDataset as SimpleDataset
2 changes: 1 addition & 1 deletion tests/dataset/test_batch_mapped.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import jax.numpy as jnp
import pytest

from loadax import SimpleDataset
from loadax.dataset.dataset import MappedBatchDataset
from loadax.dataset.simple import SimpleDataset


@pytest.fixture
Expand Down
3 changes: 1 addition & 2 deletions tests/dataset/test_combined.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import pytest

from loadax.dataset.combined_dataset import CombinedDataset
from loadax.dataset.simple import SimpleDataset
from loadax import CombinedDataset, SimpleDataset


@pytest.fixture
Expand Down
2 changes: 1 addition & 1 deletion tests/dataset/test_huggingface_dataset.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from datasets import Dataset as HFDataset

from loadax.dataset.huggingface import HuggingFaceDataset
from loadax import HuggingFaceDataset


@pytest.fixture
Expand Down
2 changes: 1 addition & 1 deletion tests/dataset/test_mapped.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import jax.numpy as jnp
import pytest

from loadax import SimpleDataset
from loadax.dataset.dataset import MappedDataset
from loadax.dataset.simple import SimpleDataset


@pytest.fixture
Expand Down
3 changes: 1 addition & 2 deletions tests/dataset/test_partial.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import pytest

from loadax.dataset.partial_dataset import PartialDataset
from loadax.dataset.simple import SimpleDataset
from loadax import PartialDataset, SimpleDataset


@pytest.fixture
Expand Down
3 changes: 1 addition & 2 deletions tests/dataset/test_sampled.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import jax
import pytest

from loadax.dataset.sampled_dataset import SampledDataset
from loadax.dataset.simple import SimpleDataset
from loadax import SampledDataset, SimpleDataset


@pytest.fixture
Expand Down
3 changes: 1 addition & 2 deletions tests/dataset/test_sharded_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

import pytest

from loadax.dataset.sharded_dataset import ShardedDataset
from loadax.dataset.simple import SimpleDataset
from loadax import ShardedDataset, SimpleDataset


def compute_expected_boundaries(
Expand Down
2 changes: 1 addition & 1 deletion tests/dataset/test_simple_dataset.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import jax
import pytest

from loadax.dataset.simple import SimpleDataset
from loadax import SimpleDataset


@pytest.fixture
Expand Down
3 changes: 1 addition & 2 deletions tests/test_dataloader.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import pytest

from loadax.dataloader.loader import Dataloader
from loadax.dataset.simple import SimpleDataset
from loadax import Dataloader, SimpleDataset


@pytest.fixture
Expand Down

0 comments on commit 24c4cb7

Please sign in to comment.