A Static Analyzer for Detecting Tensor Shape Errors in Deep Neural Network Training Code

12/16/2021
by   Ho Young Jhoo, et al.
0

We present an automatic static analyzer PyTea that detects tensor-shape errors in PyTorch code. The tensor-shape error is critical in the deep neural net code; much of the training cost and intermediate results are to be lost once a tensor shape mismatch occurs in the midst of the training phase. Given the input PyTorch source, PyTea statically traces every possible execution path, collects tensor shape constraints required by the tensor operation sequence of the path, and decides if the constraints are unsatisfiable (hence a shape error can occur). PyTea's scalability and precision hinges on the characteristics of real-world PyTorch applications: the number of execution paths after PyTea's conservative pruning rarely explodes and loops are simple enough to be circumscribed by our symbolic abstraction. We tested PyTea against the projects in the official PyTorch repository and some tensor-error code questioned in the StackOverflow. PyTea successfully detects tensor shape errors in these codes, each within a few seconds.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/21/2022

Tensor Shape Search for Optimum Data Compression

Various tensor decomposition methods have been proposed for data compres...
research
03/16/2022

Gradual Tensor Shape Checking

Tensor shape mismatch is a common source of bugs in deep learning progra...
research
11/26/2020

ShapeFlow: Dynamic Shape Interpreter for TensorFlow

We present ShapeFlow, a dynamic abstract interpreter for TensorFlow whic...
research
10/05/2022

Axon: A Language for Dynamic Shapes in Deep Learning Graphs

Axon is a language that enables shape and rank inference for tensors in ...
research
05/31/2021

Isogeometric shape optimization for scaffold structures

The development of materials with specific structural properties is of h...
research
06/17/2020

Dynamic Tensor Rematerialization

Checkpointing enables training deep learning models under restricted mem...
research
09/18/2018

Symbolic Tensor Neural Networks for Digital Media - from Tensor Processing via BNF Graph Rules to CREAMS Applications

This tutorial material on Convolutional Neural Networks (CNN) and its ap...

Please sign up or login with your details

Forgot password? Click here to reset