1/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations 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
34namespace tensorflow {
35
36// NOLINTBEGIN(misc-unused-using-decls)
37using tsl::AllocationAttributes;
38using tsl::Allocator;
39using tsl::AllocatorAttributes;
40using tsl::AllocatorMemoryType;
41using tsl::AllocatorStats;
42using tsl::AllocatorWrapper;
43using tsl::cpu_allocator;
44using tsl::cpu_allocator_base;
45using tsl::CPUAllocatorFullStatsEnabled;
46using tsl::CPUAllocatorStatsEnabled;
47using tsl::DisableCPUAllocatorStats;
48using tsl::EnableCPUAllocatorFullStats;
49using tsl::EnableCPUAllocatorStats;
50using tsl::SubAllocator;
51// NOLINTEND(misc-unused-using-decls)
52
53} // namespace tensorflow
54
55#endif // TENSORFLOW_CORE_FRAMEWORK_ALLOCATOR_H_
56