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
5cbf81c2
Commit
5cbf81c2
authored
Feb 26, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use HookedSession to do inference. fix #161
parent
d3802e79
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
105 additions
and
130 deletions
+105
-130
tensorpack/callbacks/inference.py
tensorpack/callbacks/inference.py
+0
-2
tensorpack/callbacks/inference_runner.py
tensorpack/callbacks/inference_runner.py
+101
-128
tensorpack/predict/base.py
tensorpack/predict/base.py
+4
-0
No files found.
tensorpack/callbacks/inference.py
View file @
5cbf81c2
...
...
@@ -91,8 +91,6 @@ class ScalarStats(Inferencer):
self
.
stats
=
[]
def
_datapoint
(
self
,
output
):
for
o
in
output
:
assert
isinstance
(
o
,
(
float
,
np
.
float32
)),
type
(
o
)
self
.
stats
.
append
(
output
)
def
_after_inference
(
self
):
...
...
tensorpack/callbacks/inference_runner.py
View file @
5cbf81c2
This diff is collapsed.
Click to expand it.
tensorpack/predict/base.py
View file @
5cbf81c2
...
...
@@ -194,6 +194,10 @@ class PredictorTowerBuilder(object):
@
staticmethod
def
get_tensors_maybe_in_tower
(
placeholder_names
,
names
,
k
,
prefix
=
''
):
"""
Args:
placeholders (list): A list of __op__ name.
"""
def
maybe_inside_tower
(
name
):
name
=
get_op_tensor_name
(
name
)[
0
]
if
name
in
placeholder_names
:
...
...
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