Commit 5ff263af authored by Yuxin Wu's avatar Yuxin Wu

update docs about import

parent e00ec36b
...@@ -68,3 +68,4 @@ Dependencies: ...@@ -68,3 +68,4 @@ Dependencies:
pip install -U git+https://github.com/ppwwyyxx/tensorpack.git pip install -U git+https://github.com/ppwwyyxx/tensorpack.git
# or add `--user` to avoid system-wide installation. # or add `--user` to avoid system-wide installation.
``` ```
Besides, if you only want to use `tensorpack.dataflow` alone, TensorFlow is also optional.
...@@ -52,6 +52,7 @@ Nevertheless, tensorpack support data loading with native TF operators as well. ...@@ -52,6 +52,7 @@ Nevertheless, tensorpack support data loading with native TF operators as well.
### Use DataFlow outside Tensorpack ### Use DataFlow outside Tensorpack
DataFlow is __independent__ of both tensorpack and TensorFlow. DataFlow is __independent__ of both tensorpack and TensorFlow.
To `import tensorpack.dataflow`, you don't have to install TensorFlow.
You can simply use it as a data processing pipeline and plug it into any other frameworks. 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, To use a DataFlow independently, you will need to call `reset_state()` first to initialize it,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment