willow-ahrens / Finch.jl

Sparse tensors in Julia and more! Datastructure-driven array programing language.
http://willowahrens.io/Finch.jl/
MIT License
158 stars 15 forks source link

Bug with define node not in a block #286

Closed radha-patel closed 11 months ago

radha-patel commented 12 months ago

Code:

A = Fiber!(Dense(Dense(SparseList(Element(0.0)))), fsprand((10, 10, 10), 0.1))
temp = 0.0
@finch begin
           for k=_, i=_, l=_
                   temp = A[i, l, k]
           end
       end

Error message: ERROR: unimplemented (define(variable(temp), literal(0.0)))