Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
SparseConvNet
Commits
40fcc1e1
Commit
40fcc1e1
authored
Mar 15, 2019
by
Benjamin Thomas Graham
Browse files
to
parent
ecc6e480
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
sparseconvnet/sparseConvNetTensor.py
sparseconvnet/sparseConvNetTensor.py
+4
-0
No files found.
sparseconvnet/sparseConvNetTensor.py
View file @
40fcc1e1
...
...
@@ -22,6 +22,10 @@ class SparseConvNetTensor(object):
t
=
self
.
metadata
.
getSpatialLocations
(
spatial_size
)
return
t
def
to
(
self
,
device
):
self
.
features
=
self
.
features
.
to
(
device
)
return
self
def
type
(
self
,
t
=
None
):
if
t
:
self
.
features
=
self
.
features
.
type
(
t
)
...
...
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