Hi,
The short term answer is that you can. You “just” need to modify custom_func to accept input Tensors that have an extra dimension that will be the batch.
We are working on adding constructs to do this automatically but this is not ready yet and will be only in the fall I think.