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
cfae6938
Commit
cfae6938
authored
Sep 07, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docs
parent
2d07bc0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
docs/tutorial/symbolic.md
docs/tutorial/symbolic.md
+11
-0
tensorpack/callbacks/stats.py
tensorpack/callbacks/stats.py
+1
-0
No files found.
docs/tutorial/symbolic.md
View file @
cfae6938
...
@@ -41,6 +41,17 @@ l = func(l, *args, **kwargs)
...
@@ -41,6 +41,17 @@ l = func(l, *args, **kwargs)
l = FullyConnected('fc1', l, 10, nl=tf.identity)
l = FullyConnected('fc1', l, 10, nl=tf.identity)
```
```
### Access Internal Variables:
Access the variables like this:
```
python
l
=
Conv2D
(
'conv1'
,
l
,
32
,
3
)
print
(
l
.
variables
.
W
)
print
(
l
.
variables
.
b
)
```
The names are documented in API documentation.
Note that this method doesn't work with LinearWrap, and cannot access the variables created by an activation function.
### Use Models outside Tensorpack
### Use Models outside Tensorpack
You can use tensorpack models alone as a simple symbolic function library.
You can use tensorpack models alone as a simple symbolic function library.
...
...
tensorpack/callbacks/stats.py
View file @
cfae6938
...
@@ -135,6 +135,7 @@ class DumpTensor(Callback):
...
@@ -135,6 +135,7 @@ class DumpTensor(Callback):
Args:
Args:
names (list[str]): names of tensors
names (list[str]): names of tensors
"""
"""
assert
isinstance
(
names
,
(
list
,
tuple
)),
names
self
.
_names
=
names
self
.
_names
=
names
self
.
_dir
=
logger
.
LOG_DIR
self
.
_dir
=
logger
.
LOG_DIR
...
...
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