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
c2c88a53
Commit
c2c88a53
authored
Mar 25, 2020
by
Andrei-Claudiu Roibu
🖥
Browse files
added save function
parent
4917a5c2
Changes
1
Show whitespace changes
Inline
Side-by-side
BrainMapperUNet.py
View file @
c2c88a53
...
...
@@ -103,10 +103,23 @@ class BrainMapperUNet(nn.Module):
return
probability_map
def
save
(
self
,
path
):
"""Model Saver
Function saving the model with all its parameters to a given path.
The path must end with a *.model argument.
Args:
path (str): Path string
Returns:
None
Raises:
None
"""
Description
"""
pass
print
(
"Saving Model... {}"
.
format
(
path
))
torch
.
save
(
self
,
path
)
def
predict
(
self
,
X
):
"""
...
...
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