FreeTensor
Loading...
Searching...
No Matches
src
Namespaces
|
Macros
data_type_infer.cc File Reference
#include <
data_type_infer.h
>
#include <
serialize/print_ast.h
>
Include dependency graph for data_type_infer.cc:
Namespaces
namespace
freetensor
Macros
#define
CHK_TYPE
(cond, dtype, op)
Macro Definition Documentation
◆
CHK_TYPE
#define CHK_TYPE
(
cond,
dtype,
op
)
Value:
if
(!(cond)(dtype) && (dtype) != DataType::Custom) { \
throw
InvalidProgram(
FT_MSG
<<
"Invalid data type "
<< dtype <<
" in "
\
<< op.self().as<ASTNode>()); \
}
FT_MSG
#define FT_MSG
Definition:
except.h:23
Generated by
1.9.6