* Utility to stack tensors. * This function takes an array of tensors and combines them into a single tensor * by stacking them along a new first dimension. The resulting tensor will have * a shape that reflects the number of tensors stacked and the shape of the * individual tensors. It
(tensors, reference_tensor = null, immediate = false)