Toggle navigation
Toggle navigation
This project
Loading...
Sign in
최강혁
/
dddd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
yunjey
2017-01-08 13:42:33 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1bd5e124a11ec8a897c06f7e27b356afd2611e14
1bd5e124
1 parent
2c9a6ccb
config for compatibility with tensorflow 0.11 and 0.12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
config.py
config.py
0 → 100644
View file @
1bd5e12
import
tensorflow
as
tf
# configuration for tensorflow 0.11 and 0.12 version
try
:
# tensorflow 0.12 version
image_summary
=
tf
.
summary
.
image
scalar_summary
=
tf
.
summary
.
scalar
histogram_summary
=
tf
.
summary
.
histogram
merge_summary
=
tf
.
summary
.
merge_all
SummaryWriter
=
tf
.
summary
.
FileWriter
except
:
# tensorflow <= 0.11 version
image_summary
=
tf
.
image_summary
scalar_summary
=
tf
.
scalar_summary
histogram_summary
=
tf
.
histogram_summary
merge_summary
=
tf
.
merge_all_summaries
SummaryWriter
=
tf
.
train
.
SummaryWriter
\ No newline at end of file
Please
register
or
login
to post a comment