• 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 #ifndef TENSORFLOW_STREAM_EXECUTOR_LIB_ARRAY_SLICE_H_
17 #define TENSORFLOW_STREAM_EXECUTOR_LIB_ARRAY_SLICE_H_
18 
19 #include "absl/types/span.h"
20 
21 namespace stream_executor {
22 namespace port {
23 
24 template <typename T>
25 using ArraySlice = absl::Span<const T>;
26 template <typename T>
27 using MutableArraySlice = absl::Span<T>;
28 
29 }  // namespace port
30 }  // namespace stream_executor
31 
32 namespace perftools {
33 namespace gputools {
34 
35 // Temporarily pull stream_executor into perftools::gputools while we migrate
36 // code to the new namespace.  TODO(b/77980417): Remove this once we've
37 // completed the migration.
38 using namespace stream_executor;  // NOLINT[build/namespaces]
39 
40 }  // namespace gputools
41 }  // namespace perftools
42 
43 #endif  // TENSORFLOW_STREAM_EXECUTOR_LIB_ARRAY_SLICE_H_
44