Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
edknv committed Dec 19, 2023
1 parent d3c36c7 commit a1b8a31
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion crossfit/backend/torch/op/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
# limitations under the License.

import gc
from typing import Optional

import cudf
import cupy as cp
import torch
from typing import Optional

from crossfit.backend.cudf.series import (
create_list_series_from_2d_ar,
Expand Down
9 changes: 1 addition & 8 deletions crossfit/backend/torch/op/embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import gc

import cudf
import cupy as cp
import torch

from crossfit.backend.cudf.series import create_list_series_from_2d_ar
from crossfit.backend.torch.loader import DEFAULT_BATCH_SIZE, InMemoryLoader, SortedSeqLoader
from crossfit.backend.torch.loader import DEFAULT_BATCH_SIZE
from crossfit.backend.torch.model import Model
from crossfit.backend.torch.op.base import Predictor

Expand Down
19 changes: 10 additions & 9 deletions tests/examples/test_scripts.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import os
import runpy
import shutil
import sys
import tempfile
from uuid import uuid4

import cudf
import pytest

from crossfit.dataset.load import load_dataset
cudf = pytest.importorskip("cudf")

import os # noqa: E402
import runpy # noqa: E402
import shutil # noqa: E402
import sys # noqa: E402
import tempfile # noqa: E402
from uuid import uuid4 # noqa: E402

from crossfit.dataset.load import load_dataset # noqa: E402

examples_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "examples")

Expand Down

0 comments on commit a1b8a31

Please sign in to comment.