preprintarXiv (Cornell University)May 9, 2016GREEN OA

Static Analysis of Shape in TensorFlow Programs

TTThe Theano Development TeamARAl-Rfou, RamiAGAlain, GuillaumeAAAlmahairi, AmjadACAngermueller, Christof

National and Kapodistrian University of Athens · IBM (United States)

Indexed inarxivdatacite

Abstract

Machine learning has been widely adopted in diverse science and engineering domains, aided by reusable libraries and quick development patterns. The TensorFlow library is probably the best-known representative of this trend and most users employ the Python API to its powerful back-end. TensorFlow programs are susceptible to several systematic errors, especially in the dynamic typing setting of Python. We present Pythia, a static analysis that tracks the shapes of tensors across Python library calls and warns of several possible mismatches. The key technical aspects are a close modeling of library semantics with respect to tensor shape, and an identification of violations and error-prone patterns. Pythia is…

Citation impact

1,684
total citations
FWCI
526.97
Percentile
100%
References
27
Citations per year

Authors

113
  • TT
    The Theano Development TeamCorresponding

    National and Kapodistrian University of Athens

  • AR
    Al-Rfou, Rami

    IBM (United States)

  • AG
    Alain, Guillaume

    National and Kapodistrian University of Athens

  • AA
    Almahairi, Amjad

    National and Kapodistrian University of Athens

  • AC
    Angermueller, Christof

    National and Kapodistrian University of Athens

Topics & keywords

Keywords
  • Python (programming language)
  • Computer science
  • Compiler
  • Computation
  • Section (typography)
  • Principal (computer security)
  • Artificial intelligence
  • Software
No related works found for this paper.