This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
from typing import List | |
def sliding_window(input_: List[int], kernel_: List[int]) -> List[int]: | |
# Checking input and kernel length constraint | |
if len(kernel_) > len(input_): | |
raise ValueError("Input Size must be gratter than Kernel size") | |
start_index = 0 |