Skip to content

Commit

Permalink
Run isort
Browse files Browse the repository at this point in the history
  • Loading branch information
gmeanti committed Sep 20, 2023
1 parent 03016d1 commit eb51da4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 17 deletions.
2 changes: 1 addition & 1 deletion falkon/kernels/distance_kernel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Dict, Optional, Type, Union, Tuple
from typing import Dict, Optional, Tuple, Type, Union

import numpy as np
import torch
Expand Down
2 changes: 1 addition & 1 deletion falkon/kernels/keops_helpers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import abc
import functools
from typing import List, Optional, Union, Dict
from typing import Dict, List, Optional, Union

import torch

Expand Down
10 changes: 2 additions & 8 deletions falkon/mmv_ops/fmm.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
from contextlib import ExitStack
from dataclasses import dataclass, field
from typing import Optional, Union, Dict
from typing import Dict, Optional, Union

import torch
import torch.cuda as tcd

import falkon
from falkon.mmv_ops.utils import (
_call_direct,
_check_contiguity,
_extract_flat,
_get_gpu_info,
_start_wait_processes,
)
from falkon.mmv_ops.utils import _call_direct, _check_contiguity, _extract_flat, _get_gpu_info, _start_wait_processes
from falkon.options import BaseOptions
from falkon.sparse.sparse_tensor import SparseTensor
from falkon.utils.device_copy import copy
Expand Down
9 changes: 2 additions & 7 deletions falkon/mmv_ops/fmmv.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from collections import defaultdict
from contextlib import ExitStack
from dataclasses import dataclass, field
from typing import Optional, Tuple, Union, Dict
from typing import Dict, Optional, Tuple, Union

import numpy as np
import torch
Expand All @@ -22,12 +22,7 @@
from falkon.options import BaseOptions
from falkon.sparse import SparseTensor
from falkon.utils.device_copy import copy
from falkon.utils.helpers import (
calc_gpu_block_sizes,
select_dim_over_n,
select_dim_over_nm_v2,
sizeof_dtype,
)
from falkon.utils.helpers import calc_gpu_block_sizes, select_dim_over_n, select_dim_over_nm_v2, sizeof_dtype
from falkon.utils.tensor_helpers import create_same_stride, extract_fortran


Expand Down

0 comments on commit eb51da4

Please sign in to comment.