Skip to content

Commit ae49067

Browse files
Fix consts and duplicated comment
1 parent 00ca9ad commit ae49067

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

include/tvm/ir/expr.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,6 @@ class RelayExprNode : public BaseExprNode {
182182
*
183183
* Set to VirtualDevice::FullyUnconstrained by default.
184184
*
185-
* Set to VirtualDevice::FullyUnconstrained by default.
186-
*
187185
* \note Unfortunately, the type of virtual_device_ needs to be ObjectRef to avoid a circular
188186
* import.
189187
*/

src/relay/ir/expr.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ using namespace tvm::runtime;
4545
Constant::Constant(runtime::NDArray data, Span span) {
4646
ObjectPtr<ConstantNode> n = make_object<ConstantNode>();
4747
n->data = std::move(data);
48+
n->virtual_device_ = VirtualDevice::FullyUnconstrained();
4849
n->span = std::move(span);
4950
data_ = std::move(n);
5051
}

0 commit comments

Comments
 (0)