ymym3412 / textcnn-conv-deconv-pytorch

text convolution-deconvolution auto-encoder model in PyTorch
Apache License 2.0
56 stars 14 forks source link

Need help with understanding the code #2

Open richielo opened 6 years ago

richielo commented 6 years ago

Hi @ymym3412 ,

Thank you for the great work. Sorry if I sound ignorant. but I am trying to understand how the code works thoroughly

May I ask what do the following lines do in the main_reconstruction script? Thanks a lot for your help in advance.

t1 = args.sentence_len + 2 * (args.filter_shape - 1)

t2 = int(math.floor((t1 - args.filter_shape) / 2) + 1) # "2" means stride size

t3 = int(math.floor((t2 - args.filter_shape) / 2) + 1) - 2
rachida-ly commented 4 years ago

bonjour s'il vous plais j'ai pas trouver data de ce projet