English

Auto-Vectorizing TensorFlow Graphs: Jacobians, Auto-Batching And Beyond

Distributed, Parallel, and Cluster Computing 2019-03-12 v1 Machine Learning Mathematical Software

Abstract

We propose a static loop vectorization optimization on top of high level dataflow IR used by frameworks like TensorFlow. A new statically vectorized parallel-for abstraction is provided on top of TensorFlow, and used for applications ranging from auto-batching and per-example gradients, to jacobian computation, optimized map functions and input pipeline optimization. We report huge speedups compared to both loop based implementations, as well as run-time batching adopted by the DyNet framework.

Cite

@article{arxiv.1903.04243,
  title  = {Auto-Vectorizing TensorFlow Graphs: Jacobians, Auto-Batching And Beyond},
  author = {Ashish Agarwal and Igor Ganichev},
  journal= {arXiv preprint arXiv:1903.04243},
  year   = {2019}
}
R2 v1 2026-06-23T08:04:07.371Z