syntax error for single-kernel broadcast over splatted arguments ("multiple splatted args cannot be fused into a single broadcast") #26127
Labels
broadcast
Applying a function over a collection
compiler:lowering
Syntax lowering (compiler front end, 2nd stage)
error handling
Handling of exceptions by Julia or the user
Seems like
f.(...)
here should just lower straight tobroadcast(f, ...)
, since it's a straightforward syntactic transformation.Is this an edge case that's just not handled correctly by the syntactic fusion code, or is the error intentional (perhaps there's an ambiguity here that I'm just missing)? At the very least, the error message should be changed - there's only a single kernel present, so there's no potential for fusion in the first place.
EDIT: edited example to avoid the syntactic fuser closing over the numeric literal (as mentioned by @mbauman)
The text was updated successfully, but these errors were encountered: