Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions multipy/runtime/environment.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,8 @@ class Environment {
std::string getZippedArchive(
const char* zipped_torch_name,
const std::string& pythonAppDir) {
std::string execPath;
std::ifstream("/proc/self/cmdline") >> execPath;
ElfFile elfFile(execPath.c_str());
// load the zipped torch modules
auto zippedTorchSection = elfFile.findSection(zipped_torch_name);
auto zippedTorchSection = searchForSection(zipped_torch_name);
MULTIPY_CHECK(
zippedTorchSection.has_value(), "Missing the zipped torch section");
const char* zippedTorchStart = zippedTorchSection->start;
Expand Down