Skip to content
Merged
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
2 changes: 1 addition & 1 deletion src/ntops/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import torch
from ntops import torch

__all__ = ["torch"]
2 changes: 1 addition & 1 deletion tests/test_abs.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_add.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import gauss, generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_addmm.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.test_mm import generate_arguments
from tests.utils import gauss
Expand Down
2 changes: 1 addition & 1 deletion tests/test_bitwise_and.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_bitwise_not.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_bitwise_or.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_bmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.test_mm import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_clamp.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_cos.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_div.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_dropout.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import torch
import torch.nn.functional as F

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_eq.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_exp.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_ge.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_gelu.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import torch
import torch.nn.functional as F

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_gt.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_isinf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_isnan.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_layer_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_le.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_lt.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_mm.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available


Expand Down
2 changes: 1 addition & 1 deletion tests/test_mul.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_ne.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_neg.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_pow.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_relu.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import torch
import torch.nn.functional as F

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_rms_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_rotary_position_embedding.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available


Expand Down
2 changes: 1 addition & 1 deletion tests/test_rsqrt.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_scaled_dot_product_attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import torch.nn.functional as F
from torch.nn.attention.bias import causal_lower_right

import ntops.torch
import ntops
from ntops.kernels.scaled_dot_product_attention import CausalVariant
from tests.skippers import skip_if_cuda_not_available

Expand Down
2 changes: 1 addition & 1 deletion tests/test_sigmoid.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_silu.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import torch
import torch.nn.functional as F

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_sin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_softmax.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_sub.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import gauss, generate_arguments

Expand Down
2 changes: 1 addition & 1 deletion tests/test_tanh.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import torch

import ntops.torch
import ntops
from tests.skippers import skip_if_cuda_not_available
from tests.utils import generate_arguments

Expand Down