1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. |
2 | |
3 | Licensed under the Apache License, Version 2.0 (the "License"); |
4 | you may not use this file except in compliance with the License. |
5 | You may obtain a copy of the License at |
6 | |
7 | http://www.apache.org/licenses/LICENSE-2.0 |
8 | |
9 | Unless required by applicable law or agreed to in writing, software |
10 | distributed under the License is distributed on an "AS IS" BASIS, |
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | See the License for the specific language governing permissions and |
13 | limitations under the License. |
14 | ==============================================================================*/ |
15 | |
16 | #ifndef TENSORFLOW_CORE_FRAMEWORK_ALLOCATOR_H_ |
17 | #define TENSORFLOW_CORE_FRAMEWORK_ALLOCATOR_H_ |
18 | |
19 | #include <stdlib.h> |
20 | |
21 | #include <functional> |
22 | #include <limits> |
23 | |
24 | #include "absl/strings/string_view.h" |
25 | #include "absl/types/optional.h" |
26 | #include "tensorflow/core/framework/numeric_types.h" |
27 | #include "tensorflow/core/framework/type_traits.h" |
28 | #include "tensorflow/core/platform/logging.h" |
29 | #include "tensorflow/core/platform/macros.h" |
30 | #include "tensorflow/core/platform/numa.h" |
31 | #include "tensorflow/core/platform/types.h" |
32 | #include "tensorflow/tsl/framework/allocator.h" |
33 | |
34 | namespace tensorflow { |
35 | |
36 | // NOLINTBEGIN(misc-unused-using-decls) |
37 | using tsl::AllocationAttributes; |
38 | using tsl::Allocator; |
39 | using tsl::AllocatorAttributes; |
40 | using tsl::AllocatorMemoryType; |
41 | using tsl::AllocatorStats; |
42 | using tsl::AllocatorWrapper; |
43 | using tsl::cpu_allocator; |
44 | using tsl::cpu_allocator_base; |
45 | using tsl::CPUAllocatorFullStatsEnabled; |
46 | using tsl::CPUAllocatorStatsEnabled; |
47 | using tsl::DisableCPUAllocatorStats; |
48 | using tsl::EnableCPUAllocatorFullStats; |
49 | using tsl::EnableCPUAllocatorStats; |
50 | using tsl::SubAllocator; |
51 | // NOLINTEND(misc-unused-using-decls) |
52 | |
53 | } // namespace tensorflow |
54 | |
55 | #endif // TENSORFLOW_CORE_FRAMEWORK_ALLOCATOR_H_ |
56 | |