• 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
15include "tensorflow/lite/delegates/gpu/common/task/serialization_base.fbs";
16
17namespace tflite.gpu.data;
18
19table TensorDescWithId {
20  desc:TensorDescriptor;
21  id:int32;
22}
23
24table PairOfValueIds {
25  first:int32;
26  second:int32;
27}
28
29table GpuNode {
30  gpu_op:GPUOperation;
31  input_ids:[int32];
32  output_ids:[int32];
33  name:string;
34}
35
36table GpuModel {
37  nodes:[GpuNode];
38  tensors:[TensorDescWithId];
39  const_tensors:[TensorDescWithId];
40  input_ids:[int32];
41  output_ids:[int32];
42  input_refs:[int64];
43  output_refs:[int64];
44  variable_ids_and_refs:[PairOfValueIds];
45}
46