Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andrei-Claudiu Roibu
BrainMapper
Commits
16642040
Commit
16642040
authored
Mar 28, 2020
by
Andrei-Claudiu Roibu
🖥
Browse files
added a device flag to predict
parent
89a2e5fb
Changes
1
Show whitespace changes
Inline
Side-by-side
BrainMapperUNet.py
View file @
16642040
...
...
@@ -139,7 +139,7 @@ class BrainMapperUNet(nn.Module):
return
next
(
self
.
parameters
()).
is_cuda
def
predict
(
self
,
X
):
def
predict
(
self
,
X
,
device
=
0
):
"""Post-training Output Prediction
This function predicts the output of the of the U-net post-training
...
...
Write
Preview
Supports
Markdown
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