When I read the official documentation of maxpool2d,it looked like this
I don’t understand the meaning of union and[T,] and tuple[T,]
When I read the official documentation of maxpool2d,it looked like this
you can either use this argument as a single variable of type T or as a tuple containing variables of type T.
for eg: you can use as kernel_size=2 or as kernel_size=(2,3)
Check python docs for more infomations.
Thank you very much!