I'm using Keras similarly to the end-to-end example here- https://keras-team.github.io/keras-tuner/tutorials/subclass-tuner/
Some of the models that are generated are much larger than others, and the larger ones lead to an OOM error that stops the tuning.
I'm aware that I can set a max_model_size (https://github.com/keras-team/keras-tuner/issues/175). But instead of limiting the model size, is it possible for the tuner to select a maximum batch size depending on the size of the model, or to skip batch sizes that are too large for memory?