tvm
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tvm::tirx::Layout Class Reference

Managed reference to a tensor-program coordinate layout. More...

#include <layout.h>

Inheritance diagram for tvm::tirx::Layout:
Collaboration diagram for tvm::tirx::Layout:

Public Member Functions

TVM_TIRX_DLL void CheckWellFormed () const
 Verify if the layout is well-formed.
 
TVM_TIRX_DLL PrimExpr GetSize (ffi::Optional< ffi::String > axis_name=std::nullopt) const
 Get the size of the layout (of some axis)
 
TVM_TIRX_DLL PrimExpr GetSpan (ffi::Optional< ffi::String > axis_name=std::nullopt) const
 Get the span of the layout (of some axis)
 
TVM_TIRX_DLL ffi::Map< ffi::String, PrimExpr > Apply (ffi::Array< PrimExpr > coord, sym::AnalyzerObj *analyzer) const
 Apply a layout using caller-owned analysis state.
 
TVM_TIRX_DLL ffi::Map< ffi::String, PrimExpr > Apply (PrimExpr coord, sym::AnalyzerObj *analyzer) const
 
TVM_TIRX_DLL ffi::Map< ffi::String, PrimExpr > Apply (const ffi::Array< PrimExpr > &coord, const ffi::Array< PrimExpr > &shape, sym::AnalyzerObj *analyzer) const
 
TVM_TIRX_DLL Layout Canonicalize () const
 Turn the layout to canonical form.
 
TVM_TIRX_DLL Layout Tile (const TileLayout &outer, const ffi::Array< PrimExpr > &outer_shape, const ffi::Array< PrimExpr > &inner_shape) const
 Tile the current layout with a given layout.
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Layout, ffi::ObjectRef, LayoutObj)
 

Detailed Description

Managed reference to a tensor-program coordinate layout.

Member Function Documentation

◆ Apply() [1/3]

TVM_TIRX_DLL ffi::Map< ffi::String, PrimExpr > tvm::tirx::Layout::Apply ( const ffi::Array< PrimExpr > &  coord,
const ffi::Array< PrimExpr > &  shape,
sym::AnalyzerObj *  analyzer 
) const

◆ Apply() [2/3]

TVM_TIRX_DLL ffi::Map< ffi::String, PrimExpr > tvm::tirx::Layout::Apply ( ffi::Array< PrimExpr >  coord,
sym::AnalyzerObj *  analyzer 
) const

Apply a layout using caller-owned analysis state.

The analyzer is required and must outlive the call. Its current premises may simplify the result. The layout adds no persistent premises and does not retain the analyzer. Related queries can reuse its caches and solver. Concurrent queries must use separate analyzers.

◆ Apply() [3/3]

TVM_TIRX_DLL ffi::Map< ffi::String, PrimExpr > tvm::tirx::Layout::Apply ( PrimExpr  coord,
sym::AnalyzerObj *  analyzer 
) const

◆ Canonicalize()

TVM_TIRX_DLL Layout tvm::tirx::Layout::Canonicalize ( ) const

Turn the layout to canonical form.

◆ CheckWellFormed()

TVM_TIRX_DLL void tvm::tirx::Layout::CheckWellFormed ( ) const

Verify if the layout is well-formed.

◆ GetSize()

TVM_TIRX_DLL PrimExpr tvm::tirx::Layout::GetSize ( ffi::Optional< ffi::String >  axis_name = std::nullopt) const

Get the size of the layout (of some axis)

◆ GetSpan()

TVM_TIRX_DLL PrimExpr tvm::tirx::Layout::GetSpan ( ffi::Optional< ffi::String >  axis_name = std::nullopt) const

Get the span of the layout (of some axis)

◆ Tile()

TVM_TIRX_DLL Layout tvm::tirx::Layout::Tile ( const TileLayout &  outer,
const ffi::Array< PrimExpr > &  outer_shape,
const ffi::Array< PrimExpr > &  inner_shape 
) const

Tile the current layout with a given layout.

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()

tvm::tirx::Layout::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE ( Layout  ,
ffi::ObjectRef  ,
LayoutObj   
)

The documentation for this class was generated from the following file: