mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
This reverts commit ae0e8f0c7316addab3f415dc767a9d34f58b0dae. Keep android/libs/fbjni because it's being used by other components of PyTorch. Pull Request resolved: https://github.com/pytorch/pytorch/pull/153656 Approved by: https://github.com/malfet
This commit is contained in:
committed by
PyTorch MergeBot
parent
56e1c236bf
commit
7ed377f577
@ -1,20 +0,0 @@
|
||||
#include <torch/csrc/jit/api/module.h>
|
||||
#include <torch/jit.h>
|
||||
#include <torch/script.h>
|
||||
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
std::string input_file_path{argv[1]};
|
||||
std::string output_file_path{argv[2]};
|
||||
|
||||
std::ifstream ifs(input_file_path);
|
||||
std::stringstream buffer;
|
||||
buffer << ifs.rdbuf();
|
||||
torch::jit::Module m("TestModule");
|
||||
|
||||
m.define(buffer.str());
|
||||
m.save(output_file_path);
|
||||
}
|
Reference in New Issue
Block a user