• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2019 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 "common.fbs";
16
17namespace tflite.gpu.gl.data;
18
19file_identifier "AFWS";
20
21// Workgroup size that applies only to a specific shader that covers predefined
22// collection of nodes.
23table HardcodedWorkgroup {
24  // Defines the size of a workgroup.
25  size:Uint3;
26
27  // Shader has to cover exactly these nodes to have workgroup size applied.
28  node_indices:[uint32];
29}
30
31// A collection of matchers to override default workgroup sizes in shaders.
32table HardcodedWorkgroups {
33  // if set, workgroups are applied only if mobile gpu info matches.
34  gpu_info:string;
35
36  workgroups:[HardcodedWorkgroup];
37}
38
39table CustomWorkgroups {
40  hardcoded_workgroups:[HardcodedWorkgroups];
41}
42
43root_type CustomWorkgroups;
44