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
4cb898a4
You need to sign in or sign up before continuing.
Commit
4cb898a4
authored
Jan 15, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix linting
parent
95ab1563
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
tensorpack/callbacks/inference_runner.py
tensorpack/callbacks/inference_runner.py
+2
-2
tensorpack/predict/base.py
tensorpack/predict/base.py
+0
-1
No files found.
tensorpack/callbacks/inference_runner.py
View file @
4cb898a4
...
@@ -9,7 +9,7 @@ import six
...
@@ -9,7 +9,7 @@ import six
from
six.moves
import
zip
,
range
from
six.moves
import
zip
,
range
from
..dataflow
import
DataFlow
from
..dataflow
import
DataFlow
from
..utils
import
logger
,
get_tqdm
,
PREDICT_TOWER
,
SUMMARY_BACKUP_KEYS
from
..utils
import
logger
,
get_tqdm
,
SUMMARY_BACKUP_KEYS
from
..tfutils.common
import
get_op_tensor_name
,
freeze_collection
from
..tfutils.common
import
get_op_tensor_name
,
freeze_collection
from
..tfutils
import
TowerContext
from
..tfutils
import
TowerContext
from
..train.input_data
import
FeedfreeInput
from
..train.input_data
import
FeedfreeInput
...
@@ -189,7 +189,7 @@ class FeedfreeInferenceRunner(Callback):
...
@@ -189,7 +189,7 @@ class FeedfreeInferenceRunner(Callback):
freeze_collection
(
SUMMARY_BACKUP_KEYS
):
freeze_collection
(
SUMMARY_BACKUP_KEYS
):
def
fn
(
_
):
def
fn
(
_
):
self
.
trainer
.
model
.
build_graph
(
self
.
_input_tensors
)
self
.
trainer
.
model
.
build_graph
(
self
.
_input_tensors
)
build_prediction_graph
(
fn
,
[
0
],
prefix
=
self
.
_prefix
)
# TODO use towerp1 to support multiple FeedfreeInferenceRunner
build_prediction_graph
(
fn
,
[
0
],
prefix
=
self
.
_prefix
)
self
.
_tower_prefix
=
TowerContext
.
get_predict_tower_name
(
self
.
_prefix
,
0
)
self
.
_tower_prefix
=
TowerContext
.
get_predict_tower_name
(
self
.
_prefix
,
0
)
self
.
_find_output_tensors
()
self
.
_find_output_tensors
()
...
...
tensorpack/predict/base.py
View file @
4cb898a4
...
@@ -7,7 +7,6 @@ from abc import abstractmethod, ABCMeta
...
@@ -7,7 +7,6 @@ from abc import abstractmethod, ABCMeta
import
tensorflow
as
tf
import
tensorflow
as
tf
import
six
import
six
from
..utils.naming
import
PREDICT_TOWER
from
..utils
import
logger
from
..utils
import
logger
from
..tfutils
import
get_tensors_by_names
,
TowerContext
from
..tfutils
import
get_tensors_by_names
,
TowerContext
...
...
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