pub fn validate_batch_size( shape: &[usize], tensor_name: &str, ) -> Result<usize, OCRError>
Validates that tensor batch size is positive.