Thank you for you reply @richard.
About Q2,  http://pytorch.org/docs/master/nn.html?highlight=conv1d#torch.nn.Conv1: is python level. C level maybe not in this rank. From the doc in torch http://pytorch.org/docs/master/nn.html?highlight=conv1d#torch.nn.Conv1d, it seems that the input is nInputFrame x inputFrameSize or nBatchFrame x nInputFrame x inputFrameSize