• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Copyright 2021 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_LITE_DELEGATES_GPU_CL_RECORDABLE_QUEUE_H_
17 #define TENSORFLOW_LITE_DELEGATES_GPU_CL_RECORDABLE_QUEUE_H_
18 
19 #include "tensorflow/lite/delegates/gpu/cl/cl_command_queue.h"
20 #include "tensorflow/lite/delegates/gpu/cl/cl_context.h"
21 #include "tensorflow/lite/delegates/gpu/cl/cl_device.h"
22 #include "tensorflow/lite/delegates/gpu/cl/cl_operation.h"
23 #include "tensorflow/lite/delegates/gpu/cl/opencl_wrapper.h"
24 #include "tensorflow/lite/delegates/gpu/common/status.h"
25 
26 namespace tflite {
27 namespace gpu {
28 namespace cl {
29 
30 class RecordableQueue {
31  public:
32   RecordableQueue() = default;
33   virtual ~RecordableQueue() = default;
34 
35   // Move only
36   RecordableQueue(RecordableQueue&& storage) = default;
37   RecordableQueue& operator=(RecordableQueue&& storage) = default;
38   RecordableQueue(const RecordableQueue&) = delete;
39   RecordableQueue& operator=(const RecordableQueue&) = delete;
40 
IsSupported()41   virtual bool IsSupported() const { return false; }
Execute(CLCommandQueue * queue)42   virtual absl::Status Execute(CLCommandQueue* queue) const {
43     return absl::UnimplementedError("");
44   }
45 };
46 
47 }  // namespace cl
48 }  // namespace gpu
49 }  // namespace tflite
50 
51 #endif  // TENSORFLOW_LITE_DELEGATES_GPU_CL_RECORDABLE_QUEUE_H_
52