You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by tq...@apache.org on 2019/12/15 23:09:58 UTC
[incubator-tvm] branch master updated: [ir] use DataType instead of
Type for readability because Type has been deprecated (#4513)
This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git
The following commit(s) were added to refs/heads/master by this push:
new 62aac9f [ir] use DataType instead of Type for readability because Type has been deprecated (#4513)
62aac9f is described below
commit 62aac9f1155496a7f824c56304c2de9a0ec88fa6
Author: Liang ZOU <li...@gmail.com>
AuthorDate: Mon Dec 16 07:09:51 2019 +0800
[ir] use DataType instead of Type for readability because Type has been deprecated (#4513)
---
include/tvm/ir.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/tvm/ir.h b/include/tvm/ir.h
index 226d6f8..53eb94e 100644
--- a/include/tvm/ir.h
+++ b/include/tvm/ir.h
@@ -50,7 +50,7 @@ class UIntImm : public ExprNode {
v->Visit("value", &value);
}
- TVM_DLL static Expr make(Type t, uint64_t value);
+ TVM_DLL static Expr make(DataType t, uint64_t value);
static constexpr const char* _type_key = "UIntImm";
TVM_DECLARE_NODE_TYPE_INFO(UIntImm, ExprNode);
@@ -67,7 +67,7 @@ class FloatImm : public ExprNode {
v->Visit("value", &value);
}
- TVM_DLL static Expr make(Type t, double value);
+ TVM_DLL static Expr make(DataType t, double value);
static constexpr const char* _type_key = "FloatImm";
TVM_DECLARE_NODE_TYPE_INFO(FloatImm, ExprNode);
@@ -104,7 +104,7 @@ class Cast : public ExprNode {
v->Visit("value", &value);
}
- TVM_DLL static Expr make(Type t, Expr v);
+ TVM_DLL static Expr make(DataType t, Expr v);
static constexpr const char* _type_key = "Cast";
TVM_DECLARE_NODE_TYPE_INFO(Cast, ExprNode);
@@ -387,7 +387,7 @@ class Load : public ExprNode {
v->Visit("predicate", &predicate);
}
- TVM_DLL static Expr make(Type type, Var buffer_var, Expr index, Expr predicate);
+ TVM_DLL static Expr make(DataType type, Var buffer_var, Expr index, Expr predicate);
static constexpr const char* _type_key = "Load";
TVM_DECLARE_NODE_TYPE_INFO(Load, ExprNode);
@@ -531,7 +531,7 @@ class Call : public ExprNode {
v->Visit("value_index", &value_index);
}
- TVM_DLL static Expr make(Type type,
+ TVM_DLL static Expr make(DataType type,
std::string name,
Array<Expr> args,
CallType call_type,