Research Article
Ftl-CoV19: A Transfer Learning Approach to Detect COVID-19
Algorithm 2
Vectorized convolutional layer generalized matrix multiplication (GEMM).
| Input: Input image Img, Filter Filter, Filter Size fs, Max Filter Count nc, Filter stride s, Padding p | | Output: Filter map of corresponding size | (1) | col_matrix ← Empty Matrix | | filter_map_size ← Output filter map size (formula (1)) | (2) | for row in [0 … filter_map_size]: | (3) | for col in [0 … filter_map_size]: | (4) | sub_patch = image[(rows): (rows + fs − 1), (cols): (cols + fs − 1)] | (5) | Add flattened sub_patch to col_matrix as column | (6) | end for | (7) | end for | (8) | filter_map = col_matrix Filter | (9) | Return filter_map | | Here, represents matrix dot product |
|