Hello,
l have the following input x=dim(16,16,3) that l would like to pass tonn.Linear()

cl = nn.Linear(16,32,3)

when l make x=cl(x) l get the following error :
***** RuntimeError: size mismatch at /opt/conda/conda-bld/pytorch_1518243271935/work/torch/lib/THC/generic/THCTensorMathBlas.cu:247**
But when it comes to 2D input such as
x=dim(16,16,3)
cl=nn.Linear(16,32)
x=cl(16,32)

It works well.
How can l adapt nn.Linear to (16,32,3) ?