Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.learn.tensorflow
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.tensorflow
Commits
15755a1c
There was a problem fetching the pipeline summary.
Commit
15755a1c
authored
7 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
Put it back maxout
parent
345a39bd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/learn/tensorflow/layers/__init__.py
+3
-2
3 additions, 2 deletions
bob/learn/tensorflow/layers/__init__.py
bob/learn/tensorflow/test/test_layers.py
+2
-2
2 additions, 2 deletions
bob/learn/tensorflow/test/test_layers.py
with
5 additions
and
4 deletions
bob/learn/tensorflow/layers/__init__.py
+
3
−
2
View file @
15755a1c
from
.Layer
import
Layer
from
.Layer
import
Layer
from
.Conv1D
import
Conv1D
from
.Conv1D
import
Conv1D
#
from .Maxout import maxout
from
.Maxout
import
maxout
# gets sphinx autodoc done right - don't remove it
# gets sphinx autodoc done right - don't remove it
...
@@ -19,7 +19,8 @@ def __appropriate__(*args):
...
@@ -19,7 +19,8 @@ def __appropriate__(*args):
__appropriate__
(
__appropriate__
(
Layer
,
Layer
,
Conv1D
Conv1D
,
Maxout
)
)
__all__
=
[
_
for
_
in
dir
()
if
not
_
.
startswith
(
'
_
'
)]
__all__
=
[
_
for
_
in
dir
()
if
not
_
.
startswith
(
'
_
'
)]
This diff is collapsed.
Click to expand it.
bob/learn/tensorflow/test/test_layers.py
+
2
−
2
View file @
15755a1c
...
@@ -9,7 +9,7 @@ from bob.learn.tensorflow.layers import maxout
...
@@ -9,7 +9,7 @@ from bob.learn.tensorflow.layers import maxout
from
nose.tools
import
assert_raises_regexp
from
nose.tools
import
assert_raises_regexp
slim
=
tf
.
contrib
.
slim
slim
=
tf
.
contrib
.
slim
"""
def
test_simple
():
def
test_simple
():
x
=
np
.
zeros
([
64
,
10
,
36
])
x
=
np
.
zeros
([
64
,
10
,
36
])
graph
=
maxout
(
x
,
num_units
=
3
)
graph
=
maxout
(
x
,
num_units
=
3
)
...
@@ -32,4 +32,4 @@ def test_invalid_shape():
...
@@ -32,4 +32,4 @@ def test_invalid_shape():
graph
=
slim
.
conv2d
(
x
,
3
,
[
3
,
3
])
graph
=
slim
.
conv2d
(
x
,
3
,
[
3
,
3
])
with
assert_raises_regexp
(
ValueError
,
'
number of features
'
):
with
assert_raises_regexp
(
ValueError
,
'
number of features
'
):
graph
=
maxout
(
graph
,
num_units
=
2
)
graph
=
maxout
(
graph
,
num_units
=
2
)
"""
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