more general
This commit is contained in:
parent
466b5c501a
commit
2c74976602
@ -45,10 +45,10 @@ params(m...) = params(m)
|
|||||||
|
|
||||||
cpu(x) = adapt(Array, x)
|
cpu(x) = adapt(Array, x)
|
||||||
|
|
||||||
default_adaptor = Array
|
default_adaptor = identity
|
||||||
|
|
||||||
@require CuArrays begin
|
@require CuArrays begin
|
||||||
global default_adaptor = CuArray
|
global default_adaptor = CuArrays.cu
|
||||||
end
|
end
|
||||||
|
|
||||||
gpu(x) = adapt(default_adaptor, x)
|
gpu(x) = adapt(default_adaptor, x)
|
||||||
|
Loading…
Reference in New Issue
Block a user