Skip to content

Commit c865094

Browse files
peterbell10will-cromar
authored andcommitted
Add missing includes (#5434)
* Add missing includes Currently this is included indirectly through PyTorch includes, but when I remove the include from PyTorch's headers, the xla build fails. * [TESTING] Pin PyTorch PR * Retrigger CI after timeout * Remove .torch_pin
1 parent 3bc6d42 commit c865094

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

torch_xla/csrc/init_python_bindings.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <torch/csrc/lazy/core/lazy_graph_executor.h>
1010

1111
#include <cstring>
12+
#include <fstream>
1213
#include <sstream>
1314
#include <string>
1415
#include <thread>

torch_xla/csrc/xla_graph_executor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <cmath>
1515
#include <condition_variable>
1616
#include <exception>
17+
#include <fstream>
1718
#include <functional>
1819
#include <mutex>
1920
#include <set>

0 commit comments

Comments
 (0)