Open drhagen opened 5 years ago
That's the intended behavior since vals_size
(i.e., the size of the values array) is only currently needed when assembly and compute are done separately, in the event that the compute function needs to zero-initialize the result values array before performing the actual computation. That said, the assembly function probably doesn't really ever need to explicitly store the size of the values array either (since the compute function should always be able to infer that from the data structures storing the result indices), so the current plan is actually to deprecate vals_size
as part of #201.
I agree that vals_size
is redundant. I will update my code to avoid it in anticipation of its removal.
Is the
evaluate
function supposed to emit code for assigningvals_size
on the output tensor? See below whereassemble
does it , butevaluate
does not.