google-research
39 строк · 1.5 Кб
1// Copyright 2024 The Google Research Authors.
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// A proto to serialize/deserialize an algorithm.
16
17syntax = "proto2";
18
19package automl_zero;
20
21import "instruction.proto";
22
23message SerializedAlgorithm {
24repeated SerializedInstruction setup_instructions = 1;
25repeated SerializedInstruction predict_instructions = 2;
26repeated SerializedInstruction learn_instructions = 3;
27}
28
29message SerializedInstruction {
30optional Op op = 1; // Required.
31optional int32 in1 = 2; // Required.
32optional int32 in2 = 3; // Required.
33optional int32 out = 4; // Required.
34optional double activation_data = 5; // Required.
35optional int32 index_data_0 = 6; // Required.
36optional float float_data_0 = 7; // Required.
37optional float float_data_1 = 8; // Required.
38optional float float_data_2 = 9; // Required.
39}
40