IntelLabs / ParallelAccelerator.jl

The ParallelAccelerator package, part of the High Performance Scripting project at Intel Labs
BSD 2-Clause "Simplified" License
294 stars 32 forks source link

WARNING: .- is no longer a function object; use broadcast(-, ...) instead #153

Closed ig0xb closed 7 years ago

ig0xb commented 7 years ago

WARNING: .- is no longer a function object; use broadcast(-, ...) instead Stacktrace: [1] depwarn(::String, ::Symbol) at ./deprecated.jl:70 [2] (::Base.##714#715)(::SharedArray{Float64,2}, ::RowVector{Float64,Array{Float64,1}}) at ./deprecated.jl:346 [3] ##Main.##predictModel#754#756(::NearestNeighbor, ::SharedArray{Float64,2}) at /Users/saran/.julia/v0.6/CompilerTools/src/OptFramework.jl:545 [4] eval(::Module, ::Any) at ./boot.jl:235 [5] predictModel(::NearestNeighbor, ::SharedArray{Float64,2}) at /Users/saran/.julia/v0.6/CompilerTools/src/OptFramework.jl:727 [6] include_string(::String, ::String) at ./loading.jl:515 [7] eval(::Module, ::Any) at ./boot.jl:235 [8] (::Atom.##61#64)() at /Users/saran/.julia/v0.6/Atom/src/eval.jl:102 [9] withpath(::Atom.##61#64, ::Void) at /Users/saran/.julia/v0.6/CodeTools/src/utils.jl:30 [10] withpath(::Function, ::Void) at /Users/saran/.julia/v0.6/Atom/src/eval.jl:38 [11] macro expansion at /Users/saran/.julia/v0.6/Atom/src/eval.jl:101 [inlined] [12] (::Atom.##60#63{Dict{String,Any}})() at ./task.jl:80 while loading console, in expression starting on line 1

Below is the following code which is causing above warnings distance= sum(abs2,(nn.Xrows .- transpose(Xvalues[i,:])),2) if is remove @acc from the function everything runs as it suppose to without warnings.

size(nn.Xrows) (50000, 3072)
size (Xvalues[i,:])) (3072,)