nn.MaxPool1d(8)) self.fc=nn.Linear(300,6) defforward(self,x): #input.shape:(16,1,425) out=self.layer1(x) out=out.view(out.size(0),-1) out=self.fc(out) returnout 輸入的數(shù)據(jù)格式是(batch_size,word_vector,sequence_length),我設(shè)置的batch=16,特征工程樣本是1x425,套用該格式就應(yīng)該...
www.dbjr.com.cn/article/1775...htm 2025-5-30