Skip to content

Commit b481783

Browse files
josh11bVijay Vasudevan
authored andcommitted
Move #include <vector> out of port.h to users of std::vector<>.
After this we can replace port.h with types.h. Change: 112727463
1 parent 5d31138 commit b481783

142 files changed

Lines changed: 120 additions & 36 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tensorflow/core/client/tensor_c_api.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ limitations under the License.
1616
#include "tensorflow/core/public/tensor_c_api.h"
1717

1818
#include <memory>
19+
#include <vector>
1920

2021
#include "tensorflow/core/lib/core/coding.h"
2122
#include "tensorflow/core/lib/core/errors.h"

tensorflow/core/client/tensor_c_api_test.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ limitations under the License.
1515

1616
#include "tensorflow/core/public/tensor_c_api.h"
1717

18+
#include <vector>
1819
#include "tensorflow/core/platform/test.h"
1920
#include "tensorflow/core/public/tensor.h"
2021

tensorflow/core/common_runtime/device.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ limitations under the License.
3131

3232
#include <memory>
3333
#include <string>
34-
#include <vector>
3534

3635
#include "tensorflow/core/framework/allocator.h"
3736
#include "tensorflow/core/framework/control_flow.h"

tensorflow/core/common_runtime/device_factory.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ limitations under the License.
1818
#include <memory>
1919
#include <string>
2020
#include <unordered_map>
21+
#include <vector>
2122

2223
#include "tensorflow/core/lib/strings/strcat.h"
2324
#include "tensorflow/core/platform/logging.h"

tensorflow/core/common_runtime/device_mgr.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ limitations under the License.
1515

1616
#include "tensorflow/core/common_runtime/device_mgr.h"
1717

18+
#include <vector>
1819
#include "tensorflow/core/common_runtime/local_device.h"
1920
#include "tensorflow/core/framework/device_attributes.pb.h"
2021
#include "tensorflow/core/lib/core/errors.h"

tensorflow/core/common_runtime/device_set_test.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ limitations under the License.
1515

1616
#include "tensorflow/core/common_runtime/device_set.h"
1717

18+
#include <vector>
1819
#include "tensorflow/core/platform/test.h"
1920
#include "tensorflow/core/public/status.h"
2021

tensorflow/core/common_runtime/function.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ limitations under the License.
1616
#include "tensorflow/core/common_runtime/function.h"
1717

1818
#include <deque>
19+
#include <vector>
1920

2021
#include "tensorflow/core/common_runtime/device.h"
2122
#include "tensorflow/core/common_runtime/executor.h"

tensorflow/core/common_runtime/gpu/gpu_allocator_retry_test.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ limitations under the License.
1515

1616
#include "tensorflow/core/common_runtime/gpu/gpu_allocator_retry.h"
1717

18+
#include <vector>
1819
#include "tensorflow/core/lib/core/notification.h"
1920
#include "tensorflow/core/platform/logging.h"
2021
#include "tensorflow/core/platform/mutex.h"

tensorflow/core/common_runtime/gpu/gpu_debug_allocator.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ limitations under the License.
1515

1616
#include "tensorflow/core/common_runtime/gpu/gpu_debug_allocator.h"
1717

18+
#include <vector>
1819
#include "tensorflow/core/common_runtime/gpu/gpu_init.h"
1920
#include "tensorflow/core/platform/stream_executor.h"
2021

tensorflow/core/common_runtime/gpu/gpu_debug_allocator.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ limitations under the License.
1919
#include <memory>
2020
#include <string>
2121
#include <unordered_map>
22-
#include <vector>
2322

2423
#include "tensorflow/core/common_runtime/gpu/visitable_allocator.h"
2524
#include "tensorflow/core/platform/macros.h"

0 commit comments

Comments
 (0)