-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DATA] Implement zero-copied string dtype and accelerate shuffle.
1. Implement a zero-copied approach to read string data from Arrow to TF. 2. Accelerate the shuffle operation of string type in ParquetDataset. preliminary benchmarking results - col=300, `batch_size`=1000 - `Intel(R) Xeon(R) Platinum 8369B CPU @ 2.90GHz` with 128 logical cores. | Dataset | list type | shuffling | throughput (samples/s) | speedup over TFRecord | | --- | --- | --- | --- | --- | | TFRecord | N | N | 1404.23 | 1.0 | | HbParquet | N | N | 41137.53 | 29.3 | | HbParquet-ZeroCopy | N | N | 51335.40 | 36.56 | | TFRecord | N | Y | 1343.10 | 1.0 | | HbParquet | N | Y | 6629.60 | 4.9 | | HbParquet-ZeroCopy | N | Y | 10941.25 | 8.1 | | TFRecord | Y | N | 1352.05 | 1.0 | | HbParquet | Y | N | 2307.33 | 1.71 | | HbParquet-ZeroCopy | Y | N | 2869.98 | 2.12 | | TFRecord | Y | Y | 1367.96 | 1.0 | | HbParquet | Y | Y | 1080.03 | 0.79 | | HbParquet-ZeroCopy | Y | Y | 1454.02 | 1.06 | Signed-off-by: langshi.cls <[email protected]>
- Loading branch information
1 parent
0545159
commit c477fae
Showing
10 changed files
with
639 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.