Update default ouput extension in optimize_for_mobile.cc (#45598)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/45598

.bc is causing issues on Android.  Let's switch to .ptl.

Test Plan: CI

Reviewed By: kimishpatel

Differential Revision: D24026180

fbshipit-source-id: 9f252f3652d748bccb19dc61a783d693e171b2c6
This commit is contained in:
David Reiss
2020-10-15 15:31:53 -07:00
committed by Facebook GitHub Bot
parent f96cb9de79
commit faf03bd226

View File

@ -51,7 +51,7 @@ int main(int argc, char** argv) {
CAFFE_ENFORCE(FLAGS_model != "", c10::UsageMessage());
std::string output_model_name =
FLAGS_model.substr(0, FLAGS_model.find(".")) + "_optimized.bc";
FLAGS_model.substr(0, FLAGS_model.find(".")) + "_optimized.ptl";
if (FLAGS_output != "") {
output_model_name = FLAGS_output;