Skip to content
This repository has been archived by the owner on Aug 26, 2019. It is now read-only.

have error when compile project #1

Open
geotyper opened this issue Jun 23, 2019 · 1 comment
Open

have error when compile project #1

geotyper opened this issue Jun 23, 2019 · 1 comment

Comments

@geotyper
Copy link

/LSTMLayer.cpp:138: error: cannot convert ‘cudnnRNNDescriptor_t {aka cudnnRNNStruct*}’ to ‘cudnnHandle_t {aka cudnnContext*}’ for argument ‘1’ to ‘cudnnStatus_t cudnnSetRNNDescriptor(cudnnHandle_t, cudnnRNNDescriptor_t, int, int, cudnnDropoutDescriptor_t, cudnnRNNInputMode_t, cudnnDirectionMode_t, cudnnRNNMode_t, cudnnRNNAlgo_t, cudnnDataType_t)’
CUDNN_DATA_FLOAT), FILE, LINE);
^
in this line of code

CheckError(cudnnSetRNNDescriptor(m_rnnDesc,
		m_hiddenSize,
		m_layerNumber,
		m_dropoutDesc,
		CUDNN_LINEAR_INPUT, // We can also skip the input matrix transformation
		CUDNN_UNIDIRECTIONAL,
        CUDNN_LSTM,
		CUDNN_DATA_FLOAT), __FILE__, __LINE__);
@geotyper
Copy link
Author

Try to use follow

CheckError(cudnnSetRNNDescriptor(handle, m_rnnDesc,
		m_hiddenSize,
		m_layerNumber,
		m_dropoutDesc,
		CUDNN_LINEAR_INPUT, // We can also skip the input matrix transformation
		CUDNN_UNIDIRECTIONAL,
        CUDNN_LSTM, CUDNN_RNN_ALGO_STANDARD,
        CUDNN_DATA_FLOAT), __FILE__, __LINE__);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant