Semi-static type, shape, and symbolic shape inference for dynamic computation graphs

7Citations
Citations of this article
6Readers
Mendeley users who have this article in their library.
Get full text

Abstract

The growing interest in deep learning has created a demand to compile computation graphs to accelerate execution and to deploy applications on various devices. Modern deep learning frameworks construct computation graphs dynamically. This gives rise to the problem of inferring types of dynamic computation graphs. Two approaches are known. One of them is a dynamic approach that constructs the computation graph from the execution trace of an actual input. While this approach is straightforward, the results of the shape inference will consist of only concrete values and is often difficult for users to interpret. The other one performs static analysis over the source program. This method can produce symbolic shape inference results but suffers from the dynamic nature of the host programming language Python. In this paper, we propose a novel approach for type, shape, and symbolic shape inference of dynamic computation graphs as a mixture of the above two methods. We present results of applying our prototype inference engine for networks written with PyTorch and demonstrate its effectiveness for nontrivial networks.

Author supplied keywords

Cite

CITATION STYLE

APA

Hattori, M., Sawada, S., Hamaji, S., Sakai, M., & Shimizu, S. (2020). Semi-static type, shape, and symbolic shape inference for dynamic computation graphs. In MAPL 2020 - Proceedings of the 4th ACM SIGPLAN International Workshop on Machine Learning and Programming Languages, co-located with PLDI 2020 (pp. 11–19). Association for Computing Machinery. https://doi.org/10.1145/3394450.3397465

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free