Skip to content

Commit 8b7e2bf

Browse files
malfetpytorchmergebot
authored andcommitted
Skip TorchScript backend for OVRSource as well (#75138)
Summary: Pull Request resolved: #75138 (Note: this ignores all push blocking failures!) Test Plan: CI Reviewed By: wconstab Differential Revision: D35331263 fbshipit-source-id: e426c4017359c9f98188c0df5226775be7b1f700 (cherry picked from commit bf1768f)
1 parent 3f108a5 commit 8b7e2bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

torch/csrc/lazy/python/init.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
#include <torch/csrc/lazy/core/ir_dump_util.h>
1212
#include <torch/csrc/lazy/core/internal_ops/ltc_ops.h>
1313
#include <torch/csrc/lazy/ts_backend/ops/device_data.h>
14-
#ifndef FBCODE_CAFFE2
14+
#if !(defined(FBCODE_CAFFE2) || defined(OVRSOURCE))
1515
#include <torch/csrc/lazy/ts_backend/ts_backend_impl.h>
16-
#endif // FBCODE_CAFFE2
16+
#endif // FBCODE_CAFFE2 || OVRSOURCE
1717
#include <string>
1818
#include <vector>
1919

@@ -161,10 +161,10 @@ void initLazyBindings(PyObject* module){
161161
lazy_ts_backend.def(
162162
"_init",
163163
[]() {
164-
#ifndef FBCODE_CAFFE2
164+
#if !(defined(FBCODE_CAFFE2) || defined(OVRSOURCE))
165165
torch::lazy::InitTorchScriptBackend();
166166
#else
167-
TORCH_CHECK(false, "TorchScript backend not yet supported in FBCODE builds");
167+
TORCH_CHECK(false, "TorchScript backend not yet supported in FBCODE/OVRSOURCE builds");
168168
#endif // FBCODE_CAFFE2
169169
});
170170

0 commit comments

Comments
 (0)