Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
WithinReason
3y ago
0 comments
Share
But then SUB, DIV and RELU could be an HLOP as well, no?
0 comments
default
newest
oldest
georgehotz
3y ago
We could have NEG instead of SUB, but with the constant folding it's a wash. DIV is already an HLOP with reciprocal (used to use POW, but that was slower. And what would you implement RELU in terms of?
WithinReason
OP
3y ago
max(0,x)
georgehotz
3y ago
That's a ReduceOp right now, more annoying to reason about than a UnaryOp. But in the limit, yea. Or add an elementwise BinaryOp for max.
Submit a PR if you can improve something!
j
/
k
navigate · click thread line to collapse