Commit 76f5b2f
committed
Add features parameter to IterableDatasetDict.map
IterableDataset.map accepts a features parameter to declare the
output schema, but IterableDatasetDict.map did not expose it.
This meant users of IterableDatasetDict had no way to preserve
feature metadata through map operations.1 parent 6f9d24f commit 76f5b2f
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2105 | 2105 | | |
2106 | 2106 | | |
2107 | 2107 | | |
| 2108 | + | |
2108 | 2109 | | |
2109 | 2110 | | |
2110 | 2111 | | |
| |||
2156 | 2157 | | |
2157 | 2158 | | |
2158 | 2159 | | |
| 2160 | + | |
| 2161 | + | |
2159 | 2162 | | |
2160 | 2163 | | |
2161 | 2164 | | |
| |||
2187 | 2190 | | |
2188 | 2191 | | |
2189 | 2192 | | |
| 2193 | + | |
2190 | 2194 | | |
2191 | 2195 | | |
2192 | 2196 | | |
| |||
0 commit comments