Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.learn.pytorch
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.learn.pytorch
Commits
90be3642
Commit
90be3642
authored
7 years ago
by
Guillaume HEUSCH
Browse files
Options
Downloads
Patches
Plain Diff
[architectures] fixed docstrings
parent
9944b123
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/learn/pytorch/architectures/CASIANet.py
+7
-8
7 additions, 8 deletions
bob/learn/pytorch/architectures/CASIANet.py
bob/learn/pytorch/architectures/CNN8.py
+10
-10
10 additions, 10 deletions
bob/learn/pytorch/architectures/CNN8.py
with
17 additions
and
18 deletions
bob/learn/pytorch/architectures/CASIANet.py
+
7
−
8
View file @
90be3642
import
torch
import
torch
import
torch.nn
as
nn
import
torch.nn
as
nn
import
torch.nn.functional
as
F
import
torch.nn.functional
as
F
...
@@ -25,11 +24,11 @@ class CASIANet(nn.Module):
...
@@ -25,11 +24,11 @@ class CASIANet(nn.Module):
The number of classes.
The number of classes.
drop_rate: float
drop_rate: float
The probability for dropout.
The probability for dropout.
conv: pyclass
torch.nn.Module
conv:
:
py
:
class
:`
torch.nn.Module
`
The output of the convolutional / maxpool layers
The output of the convolutional / maxpool layers
avgpool: pyclass
torch.nn.Module
avgpool:
:
py
:
class
:`
torch.nn.Module
`
The output of the average pooling layer (used as embedding)
The output of the average pooling layer (used as embedding)
classifier: pyclass
torch.nn.Module
classifier:
:
py
:
class
:`
torch.nn.Module
`
The output of the last linear (logits)
The output of the last linear (logits)
"""
"""
...
@@ -58,13 +57,13 @@ class CASIANet(nn.Module):
...
@@ -58,13 +57,13 @@ class CASIANet(nn.Module):
Parameters
Parameters
----------
----------
x: torch
Tensor
x:
:py:class:`
torch
.
Tensor
`
The data to forward through the network
The data to forward through the network
Returns
Returns
-------
-------
x: torch
Tensor
x:
:py:class:`
torch
.
Tensor
`
The last layer of the network
The last layer of the network
"""
"""
...
...
This diff is collapsed.
Click to expand it.
bob/learn/pytorch/architectures/CNN8.py
+
10
−
10
View file @
90be3642
...
@@ -15,12 +15,12 @@ class CNN8(nn.Module):
...
@@ -15,12 +15,12 @@ class CNN8(nn.Module):
The number of classes.
The number of classes.
drop_rate: float
drop_rate: float
The probability for dropout.
The probability for dropout.
conv: :py:class:
:
torch.nn.Module
conv: :py:class:
`
torch.nn.Module
`
The output of the convolutional / maxpool layers
The output of the convolutional / maxpool layers
avgpool: :py:class:
:
torch.nn.Module
avgpool: :py:class:
`
torch.nn.Module
`
The output of the average pooling layer (used as embedding)
The output of the average pooling layer (used as embedding)
classifier: :py:class:
:
torch.nn.Module
classifier: :py:class:
`
torch.nn.Module
`
The output of the last linear (logits)
The output of the last linear (logits)
"""
"""
...
@@ -48,13 +48,13 @@ class CNN8(nn.Module):
...
@@ -48,13 +48,13 @@ class CNN8(nn.Module):
Parameters
Parameters
----------
----------
x: torch
Tensor
x:
:py:class:`
torch
.
Tensor
`
The data to forward through the network
The data to forward through the network
Returns
Returns
-------
-------
x: torch
Tensor
x:
:py:class:`
torch
.
Tensor
`
The last layer of the network
The last layer of the network
"""
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment