• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2020 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
15include "tensorflow/lite/delegates/gpu/common/gpu_model.fbs";
16include "tensorflow/lite/delegates/gpu/common/task/serialization_base.fbs";
17
18namespace tflite.gpu.cl.data;
19
20table BinaryProgram {
21  fingerprint:uint64;
22  binary:[ubyte];
23}
24
25table InferenceContext {
26  gpu_model:tflite.gpu.data.GpuModel;
27  driver_version:string;
28  binary_programs:[BinaryProgram];
29  // Must be serialized after actual OpenCL objects created
30  // Separated from nodes in GpuModel
31  tuned_work_group_sizes_per_node:[tflite.gpu.data.Int3];
32  fingerprints_per_node:[uint64];
33}
34
35root_type InferenceContext;
36