Skip to content

Commit

Permalink
[checkpoint] rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
mbs-octoml committed Sep 24, 2021
1 parent ebc116e commit f64e372
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/relay/transforms/device_planner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@
#include <tvm/relay/analysis.h>
#include <tvm/relay/attrs/annotation.h>
#include <tvm/relay/attrs/device_copy.h>
#include <tvm/relay/attrs/function.h>
#include <tvm/relay/attrs/memory.h>
#include <tvm/relay/expr_functor.h>
#include <tvm/relay/op.h>
Expand Down Expand Up @@ -1113,7 +1114,7 @@ class DeviceAnalyzer : public ExprVisitor {
// If the function already has an "on_device" attribute then we can further
// constrain the function's domain to match it.
Optional<Attrs> opt_attrs =
function_node->GetAttr<Attrs>(FunctionOnDeviceAttrs::kFunctionAttrsKey);
function_node->GetAttr<Attrs>(attr::kFunctionAttrsKey);
if (opt_attrs) {
std::vector<DeviceDomainPtr> args_and_result;
for (size_t i = 0; i < function_node->params.size(); ++i) {
Expand Down

0 comments on commit f64e372

Please sign in to comment.