import torch
from typing import List


def get_index_conv_layers(model: torch.nn.Module) -> List[int]:
    """returns a index list of all convolutional layers"""
    list_conv_layer = []
    for i, layer in enumerate(model.layers):
        if isinstance(layer, torch.nn.Conv3d):
            list_conv_layer.append(i)
    return list_conv_layer