Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
one
spconv
Commits
0757c45b
Commit
0757c45b
authored
May 23, 2019
by
traveller59
Browse files
disable hash for now, have some problem.
parent
47527b00
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
spconv/conv.py
spconv/conv.py
+9
-9
No files found.
spconv/conv.py
View file @
0757c45b
...
@@ -70,7 +70,7 @@ class SparseConvolution(SparseModule):
...
@@ -70,7 +70,7 @@ class SparseConvolution(SparseModule):
inverse
=
False
,
inverse
=
False
,
indice_key
=
None
,
indice_key
=
None
,
fused_bn
=
False
,
fused_bn
=
False
,
use_hash
=
Tru
e
):
use_hash
=
Fals
e
):
super
(
SparseConvolution
,
self
).
__init__
()
super
(
SparseConvolution
,
self
).
__init__
()
assert
groups
==
1
assert
groups
==
1
if
not
isinstance
(
kernel_size
,
(
list
,
tuple
)):
if
not
isinstance
(
kernel_size
,
(
list
,
tuple
)):
...
@@ -222,7 +222,7 @@ class SparseConv2d(SparseConvolution):
...
@@ -222,7 +222,7 @@ class SparseConv2d(SparseConvolution):
groups
=
1
,
groups
=
1
,
bias
=
True
,
bias
=
True
,
indice_key
=
None
,
indice_key
=
None
,
use_hash
=
Tru
e
):
use_hash
=
Fals
e
):
super
(
SparseConv2d
,
self
).
__init__
(
super
(
SparseConv2d
,
self
).
__init__
(
2
,
2
,
in_channels
,
in_channels
,
...
@@ -248,7 +248,7 @@ class SparseConv3d(SparseConvolution):
...
@@ -248,7 +248,7 @@ class SparseConv3d(SparseConvolution):
groups
=
1
,
groups
=
1
,
bias
=
True
,
bias
=
True
,
indice_key
=
None
,
indice_key
=
None
,
use_hash
=
Tru
e
):
use_hash
=
Fals
e
):
super
(
SparseConv3d
,
self
).
__init__
(
super
(
SparseConv3d
,
self
).
__init__
(
3
,
3
,
in_channels
,
in_channels
,
...
@@ -274,7 +274,7 @@ class SparseConv4d(SparseConvolution):
...
@@ -274,7 +274,7 @@ class SparseConv4d(SparseConvolution):
groups
=
1
,
groups
=
1
,
bias
=
True
,
bias
=
True
,
indice_key
=
None
,
indice_key
=
None
,
use_hash
=
Tru
e
):
use_hash
=
Fals
e
):
super
(
SparseConv4d
,
self
).
__init__
(
super
(
SparseConv4d
,
self
).
__init__
(
4
,
4
,
in_channels
,
in_channels
,
...
@@ -300,7 +300,7 @@ class SparseConvTranspose2d(SparseConvolution):
...
@@ -300,7 +300,7 @@ class SparseConvTranspose2d(SparseConvolution):
groups
=
1
,
groups
=
1
,
bias
=
True
,
bias
=
True
,
indice_key
=
None
,
indice_key
=
None
,
use_hash
=
Tru
e
):
use_hash
=
Fals
e
):
super
(
SparseConvTranspose2d
,
self
).
__init__
(
super
(
SparseConvTranspose2d
,
self
).
__init__
(
2
,
2
,
in_channels
,
in_channels
,
...
@@ -327,7 +327,7 @@ class SparseConvTranspose3d(SparseConvolution):
...
@@ -327,7 +327,7 @@ class SparseConvTranspose3d(SparseConvolution):
groups
=
1
,
groups
=
1
,
bias
=
True
,
bias
=
True
,
indice_key
=
None
,
indice_key
=
None
,
use_hash
=
Tru
e
):
use_hash
=
Fals
e
):
super
(
SparseConvTranspose3d
,
self
).
__init__
(
super
(
SparseConvTranspose3d
,
self
).
__init__
(
3
,
3
,
in_channels
,
in_channels
,
...
@@ -388,7 +388,7 @@ class SubMConv2d(SparseConvolution):
...
@@ -388,7 +388,7 @@ class SubMConv2d(SparseConvolution):
groups
=
1
,
groups
=
1
,
bias
=
True
,
bias
=
True
,
indice_key
=
None
,
indice_key
=
None
,
use_hash
=
Tru
e
):
use_hash
=
Fals
e
):
super
(
SubMConv2d
,
self
).
__init__
(
super
(
SubMConv2d
,
self
).
__init__
(
2
,
2
,
in_channels
,
in_channels
,
...
@@ -415,7 +415,7 @@ class SubMConv3d(SparseConvolution):
...
@@ -415,7 +415,7 @@ class SubMConv3d(SparseConvolution):
groups
=
1
,
groups
=
1
,
bias
=
True
,
bias
=
True
,
indice_key
=
None
,
indice_key
=
None
,
use_hash
=
Tru
e
):
use_hash
=
Fals
e
):
super
(
SubMConv3d
,
self
).
__init__
(
super
(
SubMConv3d
,
self
).
__init__
(
3
,
3
,
in_channels
,
in_channels
,
...
@@ -442,7 +442,7 @@ class SubMConv4d(SparseConvolution):
...
@@ -442,7 +442,7 @@ class SubMConv4d(SparseConvolution):
groups
=
1
,
groups
=
1
,
bias
=
True
,
bias
=
True
,
indice_key
=
None
,
indice_key
=
None
,
use_hash
=
Tru
e
):
use_hash
=
Fals
e
):
super
(
SubMConv4d
,
self
).
__init__
(
super
(
SubMConv4d
,
self
).
__init__
(
4
,
4
,
in_channels
,
in_channels
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment