mirror of
https://github.com/pytorch/pytorch.git
synced 2026-11-20 09:04:25 +08:00
Fix typos, via a Levenshtein-type corrector (#31523)
Summary: Should be non-semantic. Uses https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines to find likely typos, with https://github.com/bwignall/typochecker to help automate the checking. Uses an updated version of the tool used in https://github.com/pytorch/pytorch/pull/30606 . Pull Request resolved: https://github.com/pytorch/pytorch/pull/31523 Differential Revision: D19216749 Pulled By: mrshenli fbshipit-source-id: 7fd489cb9a77cd7e4950c1046f925d57524960ea
This commit is contained in:
committed by
Facebook Github Bot
parent
c8ca70e39d
commit
f326045b37
@@ -256,7 +256,7 @@ void copyParameters(torch::nn::ModuleHolder<Impl>& target, size_t t_i,
|
||||
|
||||
// This test is a port of python code introduced here:
|
||||
// https://towardsdatascience.com/understanding-bidirectional-rnn-in-pytorch-5bd25a5dd66
|
||||
// Reverse forward of bidrectional GRU should act
|
||||
// Reverse forward of bidirectional GRU should act
|
||||
// as regular forward of unidirectional GRU
|
||||
void BidirectionalGRUReverseForward(bool cuda) {
|
||||
auto opt = torch::TensorOptions().dtype(torch::kFloat32).requires_grad(false)
|
||||
@@ -307,7 +307,7 @@ TEST_F(RNNTest, BidirectionalGRUReverseForward_CUDA) {
|
||||
BidirectionalGRUReverseForward(true);
|
||||
}
|
||||
|
||||
// Reverse forward of bidrectional LSTM should act
|
||||
// Reverse forward of bidirectional LSTM should act
|
||||
// as regular forward of unidirectional LSTM
|
||||
void BidirectionalLSTMReverseForwardTest(bool cuda) {
|
||||
auto opt = torch::TensorOptions().dtype(torch::kFloat32).requires_grad(false)
|
||||
|
||||
Reference in New Issue
Block a user