• 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/types.h"
23 
24 namespace stream_executor {
25 
26 using tensorflow::int8;
27 using tensorflow::int16;
28 using tensorflow::int32;
29 using tensorflow::int64;
30 
31 using tensorflow::uint8;
32 using tensorflow::uint16;
33 using tensorflow::uint32;
34 using tensorflow::uint64;
35 
36 #if !defined(PLATFORM_GOOGLE)
37 using std::string;
38 #endif
39 
40 #define SE_FALLTHROUGH_INTENDED TF_FALLTHROUGH_INTENDED
41 
42 }  // namespace stream_executor
43 
44 #define SE_DISALLOW_COPY_AND_ASSIGN TF_DISALLOW_COPY_AND_ASSIGN
45 #define SE_MUST_USE_RESULT TF_MUST_USE_RESULT
46 #define SE_PREDICT_TRUE TF_PREDICT_TRUE
47 #define SE_PREDICT_FALSE TF_PREDICT_FALSE
48 
49 #endif  // TENSORFLOW_STREAM_EXECUTOR_PLATFORM_PORT_H_
50