You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to fix this so people can save and load machine learning models that use CudaArray's without having to explicitly copy everything to cpu. Is the right way to overwrite serialize - deserialize? Or is it to introduce a new cpu array type that CudaArrays know to convert themselves to and from during load/save? Or is there some other way?
The text was updated successfully, but these errors were encountered:
Thanks Tim, the following three lines solved the problem:
type _CudaArraySave; a::Array; end
JLD.writeas(c::CudaArray) = _CudaArraySave(to_host(c))
JLD.readas(d::_CudaArraySave) = CudaArray(d.a)
Do you want to put this in CUDArt? I was going to submit a pull request but I couldn't be sure if you wanted JLD to be a requirement for CUDArt. In either case, this issue can be closed.
I'd like to fix this so people can save and load machine learning models that use CudaArray's without having to explicitly copy everything to cpu. Is the right way to overwrite serialize - deserialize? Or is it to introduce a new cpu array type that CudaArrays know to convert themselves to and from during load/save? Or is there some other way?
The text was updated successfully, but these errors were encountered: