• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 // IWYU pragma: private, include "third_party/tensorflow/stream_executor/stream_executor.h"
17 
18 #ifndef TENSORFLOW_STREAM_EXECUTOR_PLATFORM_PORT_H_
19 #define TENSORFLOW_STREAM_EXECUTOR_PLATFORM_PORT_H_
20 
21 #include "tensorflow/core/platform/macros.h"
22 #include "tensorflow/core/platform/mutex.h"
23 #include "tensorflow/core/platform/types.h"
24 
25 namespace stream_executor {
26 
27 using tensorflow::int8;
28 using tensorflow::int16;
29 using tensorflow::int32;
30 using tensorflow::int64;
31 
32 using tensorflow::uint8;
33 using tensorflow::uint16;
34 using tensorflow::uint32;
35 using tensorflow::uint64;
36 
37 #if !defined(PLATFORM_GOOGLE)
38 using std::string;
39 #endif
40 
41 using tensorflow::LinkerInitialized;
42 using tensorflow::LINKER_INITIALIZED;
43 
44 #define SE_FALLTHROUGH_INTENDED TF_FALLTHROUGH_INTENDED
45 
46 }  // namespace stream_executor
47 
48 #define SE_DISALLOW_COPY_AND_ASSIGN TF_DISALLOW_COPY_AND_ASSIGN
49 #define SE_MUST_USE_RESULT TF_MUST_USE_RESULT
50 #define SE_PREDICT_TRUE TF_PREDICT_TRUE
51 #define SE_PREDICT_FALSE TF_PREDICT_FALSE
52 
53 #endif  // TENSORFLOW_STREAM_EXECUTOR_PLATFORM_PORT_H_
54