Skip to content

Commit 7c04c58

Browse files
authored
[Minor] debug for unittest (#259)
1 parent afa2e3b commit 7c04c58

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/python/test_single_layer_conv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from torchsparse.nn import functional as F
1010
from torchsparse.utils import make_ntuple
1111

12-
from test_utils import *
12+
from .test_utils import *
1313

1414
__all__ = ["test_single_layer_convolution_forward"]
1515

tests/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ def test_single_layer(self):
2525
count += 1
2626

2727
# switch to hashmap_on_the_fly
28-
config = F.get_default_conv_config()
28+
config = F.conv_config.get_default_conv_config()
2929
config.kmap_mode = "hashmap_on_the_fly"
30-
F.set_global_conv_config(config)
30+
F.conv_config.set_global_conv_config(config)
3131
for kernel_size in kernel_sizes:
3232
for stride in strides:
3333
mean_adiff, max_rdiff = test_single_layer_convolution_forward(

0 commit comments

Comments
 (0)