ArrayDataset
jax_dataloader.datasets.ArrayDataset
¤
Bases: Dataset
Dataset wrapping numpy arrays.
Source code in jax_dataloader/datasets.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|
Attributes¤
arrays = tuple(arrays)
instance-attribute
¤
Functions¤
__getitem__(index)
¤
Source code in jax_dataloader/datasets.py
43 44 |
|
__init__(*arrays: jax.Array, asnumpy: bool = True)
¤
Source code in jax_dataloader/datasets.py
25 26 27 28 29 30 31 32 33 34 |
|
__len__()
¤
Source code in jax_dataloader/datasets.py
40 41 |
|
asnumpy()
¤
Convert all arrays to numpy arrays.
Source code in jax_dataloader/datasets.py
36 37 38 |
|