Skip to content

Commit

Permalink
[checkpoint] TODO's for default device logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mbs-octoml committed Oct 2, 2021
1 parent 9dc0882 commit 3c917f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/relay/backend/build_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ class RelayBuildModule : public runtime::ModuleNode {
Array<Pass> pass_seqs = GetPassPrefix(targets_, false);
transform::PassContext pass_ctx = PassContext::Current();

// TODO(mbs): Centralize this logic and reconcile with similar in relay/backend/vm/compiler.cc
DLDeviceType default_device_type;
if (targets_.size() == 1) {
// Homogenous execution.
Expand Down
1 change: 1 addition & 0 deletions src/relay/backend/vm/compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,7 @@ IRModule VMCompiler::OptimizeModule(IRModule mod, const TargetsMap& targets_arg,

Array<Pass> pass_seqs = relay::backend::GetPassPrefix(targets, true);

// TODO(mbs): Reconcile with relay/backend/build_module.cc
DLDeviceType default_device_type;
if (targets_arg.size() == 1) {
default_device_type =
Expand Down

0 comments on commit 3c917f0

Please sign in to comment.