tenzr::txpr::VmappedFunction¶
Callable wrapper produced by Vmap that traces the wrapped function unbatched and vectorizes it over a batch dimension. More...
#include <vmap.h>
Public Functions¶
| Name | |
|---|---|
| VmappedFunction(Fn fn, std::vector< int > in_axes ={0}, int out_axis =0) | |
| template <typename... Args> Array |
operator()(const Args &... args) |
Detailed Description¶
Callable wrapper produced by Vmap that traces the wrapped function unbatched and vectorizes it over a batch dimension.