We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a0c550 commit 46311f1Copy full SHA for 46311f1
cpp/include/torch_tensorrt/macros.h
@@ -11,8 +11,9 @@
11
#define TORCHTRT_API __attribute__((__visibility__("default")))
12
#define TORCHTRT_HIDDEN __attribute__((__visibility__("hidden")))
13
#else
14
-#define TORCHTRT_API
15
-#define TORCHTRT_HIDDEN
+// This can be used also if defined(__GNUC__) but is generated by CMake
+// and will be missing when compiling with Bazel
16
+#include <torchtrt_export.h>
17
#endif // defined(__GNUC__)
18
19
// Does this need to be gaurded or something?
@@ -31,4 +32,4 @@ namespace torch_tensorrt {
31
32
namespace torchscript {}
33
namespace ts = torchscript;
34
} // namespace torch_tensorrt
-namespace torchtrt = torch_tensorrt;
35
+namespace torchtrt = torch_tensorrt;
0 commit comments