ericproffitt / TopicModelsVB.jl

A Julia package for variational Bayesian topic modeling.
Other
81 stars 8 forks source link

error when using @gpu macro with CTM #18

Closed vsaase closed 4 years ago

vsaase commented 4 years ago

https://github.com/ericproffitt/TopicModelsVB.jl/blob/523e3e8822497edf8c9f952ebd31db406fd53bc5/src/macros.jl#L164

hi, this line raises

MethodError: no method matching LinearAlgebra.Symmetric{Float32,S} where S<:(AbstractArray{#s627,2} where #s627<:Float32)(::LinearAlgebra.Symmetric{Float64,Array{Float64,2}})
in top-level scope at base/util.jl:155
in macro expansion at dev/TopicModelsVB/src/macros.jl:164
in setproperty! at base/Base.jl:21
in convert at stdlib/v1.3/LinearAlgebra/src/symmetric.jl:193

gpuCTM method working fine

ericproffitt commented 4 years ago

Thanks for finding this, should be fixed now.