Commit 7f5ddb3
authored
[DATA] Supports
This patch introduces `hb.data.Iterator`, which optimizes cross-device
transfers of inputs.
Example:
```
iterator = tf.data.make_one_shot_iterator(ds)
iterator = hb.data.Iterator(iterator)
features = iterator.get_next()
hooks.append(hb.data.Iterator.Hook())
```hb.data.Iterator
1 parent 911f8ca commit 7f5ddb3
8 files changed
Lines changed: 781 additions & 183 deletions
File tree
- examples/ranking
- hybridbackend/tensorflow
- data
- prefetch
- embedding
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
0 commit comments