I have a for loop inside custom_func which iterates over each element of the argument a along dimension 0 (number of iterations varies from example to example). So, if I insert the batch dimension, I’ll have to add another for loop outside this loop which iterates over the batch dimension, right? but that won’t give any performance benefit, will it?