Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
a9dce5b2
Commit
a9dce5b2
authored
Jan 16, 2019
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #1053
parent
e5e54e07
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
docs/tutorial/symbolic.md
docs/tutorial/symbolic.md
+1
-1
tensorpack/models/registry.py
tensorpack/models/registry.py
+4
-0
No files found.
docs/tutorial/symbolic.md
View file @
a9dce5b2
...
@@ -7,7 +7,7 @@ such as conv/deconv, fc, bn, pooling layers. **You do not need to learn them.**
...
@@ -7,7 +7,7 @@ such as conv/deconv, fc, bn, pooling layers. **You do not need to learn them.**
These layers were written only because there were no alternatives when
These layers were written only because there were no alternatives when
tensorpack was first developed.
tensorpack was first developed.
Nowadays, these implementation actually call
`tf.layers`
directly.
Nowadays, these implementation actually call
`tf.layers`
directly.
Tensorpack will not add any more layers
into its core library because this is
__Tensorpack will not add any more layers__
into its core library because this is
not the focus of tensorpack, and there are many other alternative symbolic
not the focus of tensorpack, and there are many other alternative symbolic
libraries today.
libraries today.
...
...
tensorpack/models/registry.py
View file @
a9dce5b2
...
@@ -26,6 +26,10 @@ def _register(name, func):
...
@@ -26,6 +26,10 @@ def _register(name, func):
raise
ValueError
(
logger
.
error
(
"A layer cannot be named {}"
.
format
(
name
)))
raise
ValueError
(
logger
.
error
(
"A layer cannot be named {}"
.
format
(
name
)))
_LAYER_REGISTRY
[
name
]
=
func
_LAYER_REGISTRY
[
name
]
=
func
# handle alias
if
name
==
'Conv2DTranspose'
:
_register
(
'Deconv2D'
,
func
)
def
get_registered_layer
(
name
):
def
get_registered_layer
(
name
):
"""
"""
...
...
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