fix rnn_op bug in cudnn_version>= 8 (#29406)

revert-31562-mean
Jack Zhou 4 years ago committed by GitHub
parent 87bb726258
commit 1dd7b97b66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -314,7 +314,7 @@ class ScopedRNNTensorDescriptor {
inline cudnnRNNDataDescriptor_t descriptor(
const cudnnDataType_t cudnn_type, int max_seq_length, int batch_size,
int input_size, bool time_major, const std::vector<int>& seq_length) {
static float padding_fill = 0.0f;
static double padding_fill = 0.0f;
cudnnRNNDataLayout_t layout;
if (time_major) {

Loading…
Cancel
Save