当前位置: 代码迷 >> 综合 >> UserWarning: RNN module weights are not part of single contiguous chunk of memory
  详细解决方案

UserWarning: RNN module weights are not part of single contiguous chunk of memory

热度:28   发布时间:2024-01-12 18:18:23.0
def forward(...): ...self.lstm.flatten_parameters()h_lstm, _ = self.lstm( encoder_out )

 

  相关解决方案