Go to the documentation of this file.
25 #ifndef MXNET_IR_EXPR_H_
26 #define MXNET_IR_EXPR_H_
93 static constexpr
const char*
_type_key =
"PrimExpr";
225 #endif // MXNET_IR_EXPR_H_
namespace of mxnet
Definition: api_registry.h:33
double value
The constant value content.
Definition: expr.h:186
static constexpr const char * _type_key
Definition: expr.h:143
Base type of all the expressions.
Definition: expr.h:40
const Object * get() const
Definition: object.h:543
base class of all object containers.
Definition: object.h:151
FloatImm()
Constructor.
Definition: expr.h:202
const FloatImmNode * operator->() const
Get pointer to the container.
Definition: expr.h:217
A custom smart pointer for Object.
Definition: object.h:346
const IntImmNode * operator->() const
Get pointer to the internal value.
Definition: expr.h:172
MXNET_DECLARE_BASE_OBJECT_INFO(BaseExprNode, Object)
MXNetDataType dtype
The runtime data type of the primitive expression.
Definition: expr.h:91
#define MXNET_DECLARE_FINAL_OBJECT_INFO(TypeName, ParentType)
helper macro to declare type information in a final class.
Definition: object.h:668
PrimExpr()
Cosntructor.
Definition: expr.h:104
Base node of all primitive expressions.
Definition: expr.h:75
static constexpr const char * _type_key
Definition: expr.h:188
int64_t value
the Internal value.
Definition: expr.h:141
MXNetDataType dtype() const
Definition: expr.h:127
Managed reference class to FloatImmNode.
Definition: expr.h:197
IntImm(runtime::ObjectPtr< Object > node)
constructor from node.
Definition: expr.h:161
FloatImm(runtime::ObjectPtr< Object > node)
constructor from node.
Definition: expr.h:206
MXNET_DECLARE_BASE_OBJECT_INFO(PrimExprNode, BaseExprNode)
BaseExpr(runtime::ObjectPtr< Object > ptr)
Cosntructor from object ptr.
Definition: expr.h:58
#define MXNET_DLL
MXNET_DLL prefix for windows.
Definition: c_api.h:53
Constant floating point literals in the program.
Definition: expr.h:183
BaseExpr()
Cosntructor.
Definition: expr.h:53
Base class of all object reference.
Definition: object.h:500
Reference to PrimExprNode.
Definition: expr.h:101
Constant integer literals in the program.
Definition: expr.h:138
static constexpr const char * _type_key
Definition: expr.h:42
Runtime primitive data type.
Definition: data_type.h:40
IntImm()
Constructor.
Definition: expr.h:157
PrimExpr(runtime::ObjectPtr< Object > ptr)
Cosntructor from object ptr.
Definition: expr.h:109
A managed object in MXNet runtime.
Managed reference class to IntImmNode.
Definition: expr.h:152
Managed reference to BaseExprNode.
Definition: expr.h:50
Definitions and helper macros for IR/AST nodes.
static constexpr const char * _type_key
Definition: expr.h:93