Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use vmap for random_gamma implementation on CPU backend
XLA:CPU is preparing to switch from compiling whole XLA program into a single LLVM function to a mode where each fusion/kernel will have its own entry point, and a thin runtime that will dispatch compute functions concurrently. This execution mode does not work very well with while loops with tiny computations and large number of iterations. Similar to GPU backend use vmap to avoid excessive runtime overheads. Context: openxla/community#96 PiperOrigin-RevId: 656199716
- Loading branch information