We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00ca9ad commit ae49067Copy full SHA for ae49067
include/tvm/ir/expr.h
@@ -182,8 +182,6 @@ class RelayExprNode : public BaseExprNode {
182
*
183
* Set to VirtualDevice::FullyUnconstrained by default.
184
185
- * Set to VirtualDevice::FullyUnconstrained by default.
186
- *
187
* \note Unfortunately, the type of virtual_device_ needs to be ObjectRef to avoid a circular
188
* import.
189
*/
src/relay/ir/expr.cc
@@ -45,6 +45,7 @@ using namespace tvm::runtime;
45
Constant::Constant(runtime::NDArray data, Span span) {
46
ObjectPtr<ConstantNode> n = make_object<ConstantNode>();
47
n->data = std::move(data);
48
+ n->virtual_device_ = VirtualDevice::FullyUnconstrained();
49
n->span = std::move(span);
50
data_ = std::move(n);
51
}
0 commit comments