Skip to content

Commit

Permalink
Set interface_call to true be default (pytorch#86668)
Browse files Browse the repository at this point in the history
Summary: ASR models need it

Test Plan: existing unit tests

Reviewed By: cccclai

Differential Revision: D40251788

Pull Request resolved: pytorch#86668
Approved by: https://github.com/cccclai
  • Loading branch information
qihqi authored and pytorchmergebot committed Oct 11, 2022
1 parent 7f02f2a commit f32aeea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion torch/csrc/jit/serialization/export_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,11 @@ SourceRangeRecords getBackendSourceRanges(const Module& m) {
return sr_records;
}

// TODO: remove mobileInterfaceCallExport as it is no longer needed.
// This function was introduced to guard the usage of `InterfaceCall` and
// now the support for `InterfaceCall` should be mature enough.
auto& mobileInterfaceCallExport() {
static std::atomic<bool> flag{false};
static std::atomic<bool> flag{true};
return flag;
}

Expand Down

0 comments on commit f32aeea

Please sign in to comment.