Usually the batch dimension would be in dim0, so that you wouldn’t have to change anything.
However, if you are using a custom model without a batch dimension (or in another dim), you could use the repeat 7 or expand 7 function on the parameter(s).