tvm
Classes | Namespaces | Macros | Functions
einsum.h File Reference

Einstein summation op. More...

#include <tvm/te/operation.h>
#include <tvm/tir/data_layout.h>
#include <tvm/topi/detail/constant_utils.h>
#include <tvm/topi/detail/ravel_unravel.h>
#include <tvm/topi/detail/tensor_utils.h>
#include <tvm/topi/tags.h>
#include <algorithm>
#include <bitset>
#include <iterator>
#include <string>
#include <tuple>
#include <unordered_set>
#include <vector>
Include dependency graph for einsum.h:

Go to the source code of this file.

Classes

struct  tvm::topi::EinsumEquation
 

Namespaces

 tvm
 runtime implementation for LibTorch/TorchScript.
 
 tvm::topi
 

Macros

#define LABELRANGE   128
 
#define NPY_MAXDIMS   16
 
#define NPY_MAXARGS   16
 

Functions

Array< PrimExpr > tvm::topi::InferEinsumShape (const std::string &subscripts, const std::vector< Array< PrimExpr >> &operands)
 Compute the shape of the output. More...
 
Tensor tvm::topi::einsum (const std::string &subscripts_str, const Array< Tensor > inputs, std::string name="T_einsum", std::string tag=kEinsum)
 Evaluates the Einstein summation convention on the operands. More...
 

Detailed Description

Einstein summation op.

Macro Definition Documentation

◆ LABELRANGE

#define LABELRANGE   128

◆ NPY_MAXARGS

#define NPY_MAXARGS   16

◆ NPY_MAXDIMS

#define NPY_MAXDIMS   16