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
22582cc7
Commit
22582cc7
authored
Mar 17, 2020
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
bc5b5cc0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
tensorpack/dataflow/raw.py
tensorpack/dataflow/raw.py
+3
-0
tensorpack/tfutils/sessinit.py
tensorpack/tfutils/sessinit.py
+1
-1
No files found.
tensorpack/dataflow/raw.py
View file @
22582cc7
...
...
@@ -111,6 +111,9 @@ class DataFromGenerator(DataFlow):
else
:
yield
from
self
.
_gen
()
def
__len__
(
self
):
return
len
(
self
.
_gen
)
class
DataFromIterable
(
DataFlow
):
""" Wrap an iterable of datapoints to a DataFlow"""
...
...
tensorpack/tfutils/sessinit.py
View file @
22582cc7
...
...
@@ -260,7 +260,7 @@ class ChainInit(SessionInit):
i
.
_run_init
(
sess
)
def
SmartInit
(
obj
,
ignore_mismatch
=
False
):
def
SmartInit
(
obj
,
*
,
ignore_mismatch
=
False
):
"""
Create a :class:`SessionInit` to be loaded to a session,
automatically from any supported objects, with some smart heuristics.
...
...
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