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
02020381
Commit
02020381
authored
Sep 24, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docs
parent
448895e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
docs/tutorial/dataflow.md
docs/tutorial/dataflow.md
+8
-6
No files found.
docs/tutorial/dataflow.md
View file @
02020381
...
...
@@ -52,12 +52,9 @@ the rest of the data pipeline.
Nevertheless, tensorpack support data loading with native TF operators / TF datasets as well.
### Use DataFlow outside Tensorpack
DataFlow is __independent__ of both tensorpack and TensorFlow.
To
`import tensorpack.dataflow`
, you don't even have to install TensorFlow.
You can simply use it as a data processing pipeline and plug it into any other frameworks.
To use a DataFlow independently, you will need to call
`reset_state()`
first to initialize it,
### Use DataFlow (outside Tensorpack)
Existing tensorpack trainers work with DataFlow out-of-the-box.
If you use DataFlow in some custom code, call
`reset_state()`
first to initialize it,
and then use the generator however you want:
```
python
df
=
SomeDataFlow
()
...
...
@@ -67,3 +64,8 @@ generator = df.get_data()
for
dp
in
generator
:
# dp is now a list. do whatever
```
DataFlow is __independent__ of both tensorpack and TensorFlow.
To
`import tensorpack.dataflow`
, you don't even have to install TensorFlow.
You can simply use it as a data processing pipeline and plug it into any other frameworks.
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