xref: /aosp_15_r20/external/federated-compute/fcp/tensorflow/tracing_schema.fbs (revision 14675a029014e728ec732f129a32e299b2da0601)
1// Copyright 2020 Google LLC
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 "fcp/tracing/tracing_schema_common.fbs";
16
17table RunTfOp(tag: "TFOP", span) {
18 op: string;
19}
20
21table SaveToCheckpoint(tag: "SCPT", span) {
22 before_save_op: string;
23 save_op: string;
24 after_save_op: string;
25}
26
27table RestoreFromCheckpoint(tag: "RCPT", span) {
28 before_restore_op: string;
29 restore_op: string;
30 after_restore_op: string;
31}
32
33table RestoreFromTensors(tag: "RFTS", span) {
34 before_restore_op: string;
35 after_restore_op: string;
36}
37
38table InvalidCheckpointOp (tag: "TFCO", error) {
39  field: string; // The name of the field in the checkpoint op that is invalid.
40  message: string; // Information about why the provided value is invalid.
41}
42
43table TmpFileNotDeleted (tag: "TMPD", warning) {
44  field: string; // The name of the file that could not be deleted successfully.
45}