PyTorch LSTM,batch_first=True对初始化h0和c0的影响
作者:互联网
PyTorch LSTM,batch_first=True对初始化h0和c0的影响
batch_first=True会对LSTM的输入输出的维度顺序有影响,但是对初始化h0和c0的维度顺序没有影响,也就是说,不管batch_first=True还是False,h0和c0的维度顺序都是:
https://www.cnblogs.com/picassooo/p/13637140.html
标签:h0,batch,PyTorch,LSTM,c0,True,first 来源: https://blog.csdn.net/studyvcmfc/article/details/119535116