An input-adaptive and in-place approach to dense tensor-times-matrix multiply
An input-adaptive and in-place approach to dense tensor-times-matrix multiply
复制标题
DOI:
10.1145/2807591.2807671
复制
发表时间:
2015-11
期刊:
影响因子:
--
通讯作者:
Jiajia Li;Casey Battaglino;Ioakeim Perros;Jimeng Sun;R. Vuduc
中科院分区:
文献类型:
--
作者:
Jiajia Li;Casey Battaglino;Ioakeim Perros;Jimeng Sun;R. Vuduc
This paper describes a novel framework, called InTensLi ("intensely"), for producing fast single-node implementations of dense tensor-times-matrix multiply (Ttm) of arbitrary dimension. Whereas conventional implementations of Ttm rely on explicitly converting the input tensor operand into a matrix---in order to be able to use any available and fast general matrix-matrix multiply (Gemm) implementation---our framework's strategy is to carry out the Ttm in-place, avoiding this copy. As the resulting implementations expose tuning parameters, this paper also describes a heuristic empirical model for selecting an optimal configuration based on the Ttm's inputs. When compared to widely used single-node Ttm implementations that are available in the Tensor Toolbox and Cyclops Tensor Framework (Ctf), In-TensLi's in-place and input-adaptive Ttm implementations achieve 4× and 13× speedups, showing Gemm-like performance on a variety of input sizes.