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
17d8feb5
Commit
17d8feb5
authored
Apr 10, 2016
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix cifardata bug
parent
a41f9e83
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
tensorpack/dataflow/dataset/cifar10.py
tensorpack/dataflow/dataset/cifar10.py
+1
-1
tensorpack/tfutils/common.py
tensorpack/tfutils/common.py
+1
-0
No files found.
tensorpack/dataflow/dataset/cifar10.py
View file @
17d8feb5
...
@@ -28,7 +28,7 @@ def maybe_download_and_extract(dest_directory):
...
@@ -28,7 +28,7 @@ def maybe_download_and_extract(dest_directory):
logger
.
info
(
"Found cifar10 data in {}."
.
format
(
dest_directory
))
logger
.
info
(
"Found cifar10 data in {}."
.
format
(
dest_directory
))
return
return
else
:
else
:
download
(
URL
,
dest_directory
)
download
(
DATA_
URL
,
dest_directory
)
filename
=
DATA_URL
.
split
(
'/'
)[
-
1
]
filename
=
DATA_URL
.
split
(
'/'
)[
-
1
]
filepath
=
os
.
path
.
join
(
dest_directory
,
filename
)
filepath
=
os
.
path
.
join
(
dest_directory
,
filename
)
tarfile
.
open
(
filepath
,
'r:gz'
)
.
extractall
(
dest_directory
)
tarfile
.
open
(
filepath
,
'r:gz'
)
.
extractall
(
dest_directory
)
...
...
tensorpack/tfutils/common.py
View file @
17d8feb5
...
@@ -18,6 +18,7 @@ def get_default_sess_config(mem_fraction=0.5):
...
@@ -18,6 +18,7 @@ def get_default_sess_config(mem_fraction=0.5):
conf
.
gpu_options
.
per_process_gpu_memory_fraction
=
mem_fraction
conf
.
gpu_options
.
per_process_gpu_memory_fraction
=
mem_fraction
conf
.
gpu_options
.
allocator_type
=
'BFC'
conf
.
gpu_options
.
allocator_type
=
'BFC'
conf
.
allow_soft_placement
=
True
conf
.
allow_soft_placement
=
True
#conf.log_device_placement = True
return
conf
return
conf
def
get_global_step_var
():
def
get_global_step_var
():
...
...
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