pub fn batch_images(images: &[ImageInput]) -> Result<Tensor, Error>Expand description
Batch multiple images into a single tensor
Takes a vector of ImageInput instances and concatenates them along the batch dimension.
§Arguments
images- Vector of ImageInput instances, each with shape [1, C, H, W]
§Returns
Batched tensor with shape [N, C, H, W] where N is the number of images
§Errors
Returns an error if the images have inconsistent shapes or if concatenation fails