You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose i have a function f that takes fixed size n boolean vector as input. I'm using vmap to make it faster. n is not very big in my setting, and i realize if i can cache the function f on top of vmap it can be much faster.
since there can only be 2^n possible unique input, when n=4, if i map this function on more than 16 rows, it's wasting computing
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Suppose i have a function
f
that takes fixed sizen
boolean vector as input. I'm usingvmap
to make it faster.n
is not very big in my setting, and i realize if i can cache the functionf
on top ofvmap
it can be much faster.since there can only be
2^n
possible unique input, whenn=4
, if i map this function on more than 16 rows, it's wasting computingIs there any easy way to enable that?
Beta Was this translation helpful? Give feedback.
All reactions