Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions tests/torch_test_contrib.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import torch
import unittest
import numpy as np
import faiss
import faiss.contrib.torch_utils
import torch # usort: skip
import unittest # usort: skip
import numpy as np # usort: skip

import faiss # usort: skip
import faiss.contrib.torch_utils # usort: skip

class TestTorchUtilsCPU(unittest.TestCase):
# tests add, search
Expand Down
17 changes: 9 additions & 8 deletions tests/torch_test_neural_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import torch
from torch import nn
import unittest
import numpy as np
import faiss

from faiss.contrib import datasets
from faiss.contrib.inspect_tools import get_additive_quantizer_codebooks
import torch # usort: skip
from torch import nn # usort: skip
import unittest # usort: skip
import numpy as np # usort: skip

import faiss # usort: skip

from faiss.contrib import datasets # usort: skip
from faiss.contrib.inspect_tools import get_additive_quantizer_codebooks # usort: skip


class TestLayer(unittest.TestCase):
Expand Down