Skip to content
This repository was archived by the owner on Mar 12, 2021. It is now read-only.

CEnum 0.3 compatibility. #705

Merged
merged 1 commit into from
May 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f"
[compat]
AbstractFFTs = "0.4, 0.5"
Adapt = "1.0"
CEnum = "0.2"
CEnum = "0.2, 0.3"
CUDAapi = "3.0, 4.0"
CUDAdrv = "6.0.1"
CUDAnative = "3.0"
Expand Down
2 changes: 1 addition & 1 deletion src/dnn/rnn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function RNNDesc{T}(mode::cudnnRNNMode_t, input::Int, hidden::Int; layers = 1) w
inputMode = CUDNN_LINEAR_INPUT
direction = CUDNN_UNIDIRECTIONAL
algo = CUDNN_RNN_ALGO_STANDARD
cudnnSetRNNDescriptor_v6(handle(),d[],hidden,layers,dropoutDesc,cudnnRNNInputMode_t(inputMode),cudnnDirectionMode_t(direction),mode,cudnnRNNAlgo_t(algo),cudnnDataType(T))
cudnnSetRNNDescriptor_v6(handle(),d[],hidden,layers,dropoutDesc,inputMode,direction,mode,algo,cudnnDataType(T))

w =CuArrays.zeros(T, rnnParamSize(T, d[], input))
# TODO: avoid reserve allocation here
Expand Down