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
cabf6af1
Commit
cabf6af1
authored
Jan 16, 2021
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix h5py tests
parent
a83a1824
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
setup.py
setup.py
+1
-1
tensorpack/dataflow/__init__.py
tensorpack/dataflow/__init__.py
+1
-1
tensorpack/dataflow/format.py
tensorpack/dataflow/format.py
+1
-1
tensorpack/dataflow/serialize.py
tensorpack/dataflow/serialize.py
+1
-1
No files found.
setup.py
View file @
cabf6af1
...
...
@@ -64,7 +64,7 @@ setup(
],
tests_require
=
[
'flake8'
,
'scikit-image'
],
extras_require
=
{
'all'
:
[
'scipy'
,
'h5py'
,
'lmdb>=0.92'
,
'matplotlib'
,
'scikit-learn'
],
'all'
:
[
'scipy'
,
'h5py
>=2.1
'
,
'lmdb>=0.92'
,
'matplotlib'
,
'scikit-learn'
],
'all: "linux" in sys_platform'
:
[
'python-prctl'
],
},
...
...
tensorpack/dataflow/__init__.py
View file @
cabf6af1
...
...
@@ -30,7 +30,7 @@ def _global_import(name):
p
=
__import__
(
name
,
globals
(),
locals
(),
level
=
1
)
lst
=
p
.
__all__
if
'__all__'
in
dir
(
p
)
else
dir
(
p
)
if
lst
:
del
globals
()[
name
]
globals
()
.
pop
(
name
,
None
)
for
k
in
lst
:
if
not
k
.
startswith
(
'__'
):
globals
()[
k
]
=
p
.
__dict__
[
k
]
...
...
tensorpack/dataflow/format.py
View file @
cabf6af1
...
...
@@ -43,7 +43,7 @@ class HDF5Data(RNGDataFlow):
"""
self
.
f
=
h5py
.
File
(
filename
,
'r'
)
logger
.
info
(
"Loading {} to memory..."
.
format
(
filename
))
self
.
dps
=
[
self
.
f
[
k
]
.
value
for
k
in
data_paths
]
self
.
dps
=
[
self
.
f
[
k
]
[
...
]
for
k
in
data_paths
]
lens
=
[
len
(
k
)
for
k
in
self
.
dps
]
assert
all
(
k
==
lens
[
0
]
for
k
in
lens
)
self
.
_size
=
lens
[
0
]
...
...
tensorpack/dataflow/serialize.py
View file @
cabf6af1
...
...
@@ -231,7 +231,7 @@ except ImportError:
LMDBSerializer
=
create_dummy_class
(
'LMDBSerializer'
,
'lmdb'
)
# noqa
try
:
import
tensorflow
as
tf
from
tensorpack.compat
import
tfv1
as
tf
except
ImportError
:
TFRecordSerializer
=
create_dummy_class
(
'TFRecordSerializer'
,
'tensorflow'
)
# noqa
...
...
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