Skip to content

Commit 09f5f7a

Browse files
PaliCfacebook-github-bot
authored andcommitted
Back out "Remove dead includes in multipy" (#170)
Summary: Pull Request resolved: #170 Backout because dead include removals break OSS. Reviewed By: d4l3k, anirbanr-fb-r2p Differential Revision: D39449388 fbshipit-source-id: 585b31dc0b79083bd792a8eb62259967ac7e46ab
1 parent 78444ab commit 09f5f7a

File tree

6 files changed

+8
-0
lines changed

6 files changed

+8
-0
lines changed

multipy/runtime/deploy.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// LICENSE file in the root directory of this source tree.
66

77
#include <dlfcn.h>
8+
#include <libgen.h>
89
#include <multipy/runtime/Exception.h>
910
#include <multipy/runtime/deploy.h>
1011
#include <unistd.h>

multipy/runtime/interpreter/builtin_registry.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <Python.h>
88
#include <c10/util/Exception.h>
99
#include <fmt/format.h>
10+
#include <multipy/runtime/Exception.h>
1011
#include <multipy/runtime/interpreter/builtin_registry.h>
1112

1213
namespace torch {

multipy/runtime/interpreter/interpreter_impl.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
#define PY_SSIZE_T_CLEAN
1111
#include <Python.h>
12+
#include <fmt/format.h>
13+
#include <multipy/runtime/Exception.h>
1214
#include <multipy/runtime/interpreter/builtin_registry.h>
1315
#include <multipy/runtime/interpreter/import_find_sharedfuncptr.h>
1416
#include <multipy/runtime/interpreter/plugin_registry.h>
@@ -27,6 +29,7 @@
2729
#include <thread>
2830

2931
namespace py = pybind11;
32+
using namespace py::literals;
3033

3134
// TODO this should come from cmake
3235
#define DEBUG 1

multipy/runtime/test_deploy.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <cstring>
1010

1111
#include <c10/util/irange.h>
12+
#include <libgen.h>
1213
#include <multipy/runtime/deploy.h>
1314
#include <torch/script.h>
1415
#include <torch/torch.h>

multipy/runtime/unity/tests/test_unity_simple_model.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// This source code is licensed under the BSD-style license found in the
55
// LICENSE file in the root directory of this source tree.
66

7+
#include <fmt/format.h>
78
#include <gtest/gtest.h>
89
#include <multipy/runtime/unity/tests/test_unity.h>
910
#include <multipy/runtime/unity/xar_environment.h>

multipy/runtime/unity/tests/test_unity_sum.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// This source code is licensed under the BSD-style license found in the
55
// LICENSE file in the root directory of this source tree.
66

7+
#include <fmt/format.h>
78
#include <gtest/gtest.h>
89
#include <multipy/runtime/unity/tests/test_unity.h>
910
#include <multipy/runtime/unity/xar_environment.h>

0 commit comments

Comments
 (0)