|
FreeTensor
|
#include <tensor.h>


Public Member Functions | |
| auto & | shape () |
| const auto & | shape () const |
| void | setShape (SubTreeList< ExprNode > &&shape) |
| void | setShape (const SubTreeList< ExprNode > &shape) |
| void | setShape (const std::vector< Expr > &shape) |
| void | setShape (std::initializer_list< Expr > shape) |
| DataType | dtype () const |
| void | setDType (const DataType &dtype) |
| bool | isScalar () const |
| void | compHash () override |
Public Member Functions inherited from freetensor::ASTPart | |
| virtual | ~ASTPart () |
| ASTPart (ASTPart &&other) | |
| ASTPart (const ASTPart &other) | |
| ASTPart & | operator= (ASTPart &&) |
| ASTPart & | operator= (const ASTPart &) |
| bool | trySetParent (const Ref< ASTPart > &parent) |
| void | resetParent () |
| Ref< ASTPart > | parent () const |
| bool | isSubTree () const |
| int | depth () const |
| virtual void | modifiedHook () |
| size_t | hash () |
| virtual bool | isAST () const |
Public Member Functions inherited from freetensor::EnableSelf< ASTPart > | |
| Ref< ASTPart > | self () const |
Friends | |
| template<class T > | |
| Ref< Tensor > | makeTensor (T &&, DataType) |
| Ref< Tensor > | makeTensor (std::initializer_list< Expr >, DataType) |
Additional Inherited Members | |
Public Types inherited from freetensor::EnableSelf< ASTPart > | |
| typedef ASTPart | Self |
Protected Member Functions inherited from freetensor::ASTPart | |
| void | lock () |
| void | unlock () |
| virtual void | compHash ()=0 |
| void | resetHash () |
Protected Attributes inherited from freetensor::ASTPart | |
| size_t | hash_ = ~0ull |
| std::atomic_flag | lock_ = ATOMIC_FLAG_INIT |
|
overridevirtual |
Implements freetensor::ASTPart.
|
inline |
| bool freetensor::Tensor::isScalar | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |