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

Commit

Permalink
Merge pull request #705 from JuliaGPU/tb/cenum
Browse files Browse the repository at this point in the history
CEnum 0.3 compatibility.
  • Loading branch information
maleadt authored May 5, 2020
2 parents f44cf19 + 4742b8a commit eac33f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit eac33f8

Please sign in to comment.