Open
Description
Is your feature request related to a problem?
Title. Basically, in most cases you can control your batch size by setting the batch_dims
option in BatchGenerator. However, if you don't have any batch dims to start with, you are effectively unable to control your batch size.
e.g., for an xarray DataSet ds
with dims lat
and lon
, a BatchGenerator like
bgen = xb.BatchGenerator(
ds,
{'nlon':nlons, 'nlat':nlats}
)
offers no option to control batch size.
Describe the solution you'd like
I want to be able to pass an integer to BatchGenerator that tells it the size of the batch I want, in the case described above.
Maybe something like this, but wrapped as a BatchGenerator option.
Describe alternatives you've considered
No response
Additional context
I think this can probably be solved at the same time as #127
Metadata
Metadata
Assignees
Labels
No labels