tvm
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
expr.h File Reference
#include <tvm/base.h>
#include <tvm/ffi/container/array.h>
#include <tvm/ffi/container/map.h>
#include <tvm/ffi/extra/structural_equal.h>
#include <tvm/ffi/extra/structural_hash.h>
#include <tvm/ffi/reflection/registry.h>
#include <tvm/ir/cow.h>
#include <tvm/ir/expr.h>
#include <tvm/ir/function.h>
#include <tvm/ir/location.h>
#include <tvm/ir/prim/expr.h>
#include <tvm/ir/prim/op.h>
#include <tvm/relax/type.h>
#include <tvm/runtime/tensor.h>
#include <functional>
Include dependency graph for expr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tvm::relax::ShapeExprObj
 A shape expression which allows users to construct a shape containing PrimExpr. More...
 
class  tvm::relax::ShapeExpr
 
class  tvm::relax::DataflowVarObj
 A sub-type of the variable node used to mark dataflow variables from normal visible "function local" bindings. More...
 
class  tvm::relax::DataflowVar
 
class  tvm::relax::BindingObj
 The base class of a variable binding in Relax. More...
 
class  tvm::relax::Binding
 
class  tvm::relax::MatchCastObj
 Runtime-match the value to the type. More...
 
class  tvm::relax::MatchCast
 Managed reference to MatchCastObj. More...
 
class  tvm::relax::VarBindingObj
 
class  tvm::relax::VarBinding
 
class  tvm::relax::BindingBlockObj
 
class  tvm::relax::BindingBlock
 
class  tvm::relax::DataflowBlockObj
 
class  tvm::relax::DataflowBlock
 
class  tvm::relax::SeqExprObj
 A sequence of blocks followed by an expression. More...
 
class  tvm::relax::SeqExpr
 
class  tvm::relax::IfExprObj
 Condition expression. More...
 
class  tvm::relax::IfExpr
 
class  tvm::relax::FunctionObj
 A Relax function. More...
 
class  tvm::relax::Function
 
class  tvm::relax::ExternFuncObj
 The extern function, which can represent packed function. More...
 
class  tvm::relax::ExternFunc
 

Namespaces

namespace  tvm
 An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
 
namespace  tvm::relax
 
namespace  tvm::relax::attr
 

Functions

GenericConst tvm::relax::MakeTensorConst (ffi::Tensor data, ffi::Optional< Type > ty_annotation=std::nullopt, Location loc=UnknownLoc())
 Construct a tensor constant, inferring shape and dtype when type is omitted.
 
Expr tvm::relax::GetShapeOf (const Expr &expr)
 Get the shape of Expr.
 

Variables

constexpr ffi::reflection::AttrKey< ffi::Map< ffi::String, ffi::Tensor > > tvm::relax::attr::kConstNameToConstant
 All the named Tensors accumulated during compilation by external codegen. Generally the associated runtime::Module will indicate it requires bindings for these names, and during module initialization these bindings will be recovered from a ConstLoaderModule.
 
constexpr ffi::reflection::AttrKey< bool > tvm::relax::attr::kPrimitive {"Primitive"}
 Mark the function as a primitive function.
 
constexpr ffi::reflection::AttrKey< ffi::String > tvm::relax::attr::kCodegen {"Codegen"}
 Indicate the codegen that should be used for building this function. When this is unset or set to "default", the default compilation pipeline will be used.
 
constexpr ffi::reflection::AttrKey< ffi::String > tvm::relax::attr::kComposite {"Composite"}
 Treat the function as a composite operator.
 
constexpr ffi::reflection::AttrKey< ffi::String > tvm::relax::attr::kPartitionedFromPattern
 Indicate the function was created by the Pattern Partitioning Pass.
 
constexpr ffi::reflection::AttrKey< int64_t > tvm::relax::attr::kWorkspaceSize {"WorkspaceSize"}
 The required workspace for an external function.
 
constexpr ffi::reflection::AttrKey< bool > tvm::relax::attr::kForcePure {"relax.force_pure"}
 Override checking purity for this function and treat as pure (is_pure must be set to true)
 
constexpr ffi::reflection::AttrKey< int64_t > tvm::relax::attr::kNumInput {"num_input"}
 The number of inputs of a function. If a function has the num_input attribute, the last func->params.size() - num_inputs arguments are assumed to be weights that are fixed across invocations.
 
constexpr ffi::reflection::AttrKey< int64_t > tvm::relax::attr::kOpPattern {"op_pattern"}
 
constexpr ffi::reflection::AttrKey< ffi::ObjectRef > tvm::relax::attr::kOpAttrs {"op_attrs"}
 
constexpr ffi::reflection::AttrKey< ffi::String > tvm::relax::attr::kOperatorName {"operator_name"}
 
constexpr ffi::reflection::AttrKey< ffi::String > tvm::relax::attr::kLibraryKernel {"library_kernel"}
 
constexpr ffi::reflection::AttrKey< ffi::String > tvm::relax::attr::kCSource {"c_source"}
 
constexpr ffi::reflection::AttrKey< ffi::String > tvm::relax::attr::kCSourceFmt {"c_source_fmt"}
 
constexpr ffi::reflection::AttrKey< ffi::Map< ffi::String, IntImm > > tvm::relax::attr::kTirVarUpperBound
 
constexpr ffi::reflection::AttrKey< ffi::Map< ffi::String, IntImm > > tvm::relax::attr::kTirVarLowerBound
 
constexpr ffi::reflection::AttrKey< ffi::Array< ffi::String > > tvm::relax::attr::kTirNonNegativeVar
 
constexpr const char * tvm::relax::attr::kMemoryPlanDynamicFuncOutput = "relax.memory_plan_dynamic_func_output"
 
constexpr ffi::reflection::AttrKey< ffi::Array< ffi::String > > tvm::relax::attr::kCaptureSymbolicVars
 
constexpr ffi::reflection::AttrKey< int64_t > tvm::relax::attr::kScoped {"scoped"}