()
| 275 | class CustomDataset extends tfd.Dataset<{}> { |
| 276 | state = {val: 1}; |
| 277 | async iterator() { |
| 278 | const result = iteratorFromItems([ |
| 279 | {'item': this.state.val++}, {'item': this.state.val++}, |
| 280 | {'item': this.state.val++} |
| 281 | ]); |
| 282 | return result; |
| 283 | } |
| 284 | } |
| 285 | const a = new CustomDataset(); |
| 286 | await a.repeat().take(1234).toArrayForTest(); |
nothing calls this directly
no test coverage detected