Skip to content

Commit

Permalink
fix #622: replaced array_type with atype
Browse files Browse the repository at this point in the history
  • Loading branch information
denizyuret committed Oct 22, 2020
1 parent 8a4fdbf commit db3f2db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/train20/train_ka.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Knet: atype
using Knet.KnetArrays: KnetArray
param(x::KnetArray; atype=array_type[]) = Param(convert(atype,x))
param(x::KnetArray; atype=atype()) = Param(convert(atype,x))
update!(w::KnetArray, g, p) = gclip_update!(w, g, p)
_optimizers(::KnetArray,otype; o...) = otype(;o...)

0 comments on commit db3f2db

Please sign in to comment.