Modeling of languages for tensor manipulation

01/26/2018
by   Norman A. Rink, et al.
0

Numerical applications and, more recently, machine learning applications rely on high-dimensional data that is typically organized into multi-dimensional tensors. Many existing frameworks, libraries, and domain-specific languages support the development of efficient code for manipulating tensors and tensor expressions. However, such frameworks and languages that are used in practice often lack formal specifications. The present report formally defines a model language for expressing tensor operations. The model language is simple and yet general enough so that it captures the fundamental tensor operations common to most existing languages and frameworks. It is shown that the given formal semantics are sensible, in the sense that well-typed programs in the model language execute correctly, without error. Moreover, an alternative implementation of the model language is formally defined. The alternative implementation introduces padding into the storage of tensors, which may benefit performance on modern hardware platforms. Based on their formal definitions, the original implementation of the model language and the implementation with padding are proven equivalent. Finally, some possible extensions of the presented model language for tensor manipulation are discussed.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/30/2021

HOTTBOX: Higher Order Tensor ToolBOX

HOTTBOX is a Python library for exploratory analysis and visualisation o...
research
12/11/2019

Array Languages Make Neural Networks Fast

Modern machine learning frameworks are complex: they are typically organ...
research
08/22/2023

Tensor Regression

Regression analysis is a key area of interest in the field of data analy...
research
10/12/2022

Optimizing Tensor Programs on Flexible Storage

Tensor programs often need to process large tensors (vectors, matrices, ...
research
02/25/2021

Named Tensor Notation

We propose a notation for tensors with named axes, which relieves the au...
research
11/20/2019

CleanQ: a lightweight, uniform, formally specified interface for intra-machine data transfer

We present CleanQ, a high-performance operating-system interface for des...
research
03/27/2019

Yet Another Tensor Toolbox for discontinuous Galerkin methods and other applications

The numerical solution of partial differential equations is at the heart...

Please sign up or login with your details

Forgot password? Click here to reset