#%%
if '__file__' in globals():
    import os, sys
    sys.path.append(os.path.join(os.path.dirname(__file__), '..'))

def get_conv_outsize(input_size,kernel_size,stride, pad):
    return (input_size+pad * 2 - kernel_size) // stride + 1 

H , W = 4,4, ## input size
KH , KW = 3,3 ## kernel size
SH , SW = 1,1 ## Stride
PH ,PW = 1,1 ## Padding

OH = get_conv_outsize(H,KH,SH,PH)
OW = get_conv_outsize(W,KW,SW,PW)
print(OH,OW)
# %%
