Public Member Functions | Public Attributes | Static Public Attributes | List of all members
mxnet::PrimExprNode Class Reference

Base node of all primitive expressions. More...

#include <expr.h>

Inheritance diagram for mxnet::PrimExprNode:
Inheritance graph
Collaboration diagram for mxnet::PrimExprNode:
Collaboration graph

Public Member Functions

- Public Member Functions inherited from mxnet::BaseExprNode

Public Attributes

MXNetDataType dtype
 The runtime data type of the primitive expression. More...

Static Public Attributes

static constexpr const char * _type_key = "PrimExpr"
- Static Public Attributes inherited from mxnet::BaseExprNode
static constexpr const char * _type_key = "Expr"

Detailed Description

Base node of all primitive expressions.

A primitive expression deals with low-level POD data types and handles without doing life-cycle management for objects.

PrimExpr is used in the low-level code optimizations and integer analysis.

See also

Member Function Documentation

mxnet::PrimExprNode::MXNET_DECLARE_BASE_OBJECT_INFO ( PrimExprNode  ,

Member Data Documentation

constexpr const char* mxnet::PrimExprNode::_type_key = "PrimExpr"
MXNetDataType mxnet::PrimExprNode::dtype

The runtime data type of the primitive expression.

MXNetDataType(dtype) provides coarse grained type information during compile time and runtime. It is eagerly built in PrimExpr expression construction and can be used for quick type checking.

dtype is sufficient to decide the Type of the PrimExpr when it corresponds to POD value types such as i32.

When dtype is MXNetDataType::Handle(), the expression could corresponds to a more fine-grained Type, and we can get the type by running lazy type inference.

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