xref: /aosp_15_r20/external/tensorflow/tensorflow/core/protobuf/tpu/compilation_result.proto (revision b6fb3261f9314811a0f4371741dbb8839866f948)
1syntax = "proto3";
2
3package tensorflow.tpu;
4
5import "tensorflow/compiler/xla/service/hlo.proto";
6import "tensorflow/core/protobuf/error_codes.proto";
7
8option cc_enable_arenas = true;
9
10// Describes the result of a TPU compilation. This is also used as TPU
11// compilation result status payload.
12// URI: "type.googleapis.com/tensorflow.tpu.CompilationResultProto"
13message CompilationResultProto {
14  // The error message, if any, returned during compilation.
15  error.Code status_code = 1;
16  string status_error_message = 2;
17
18  // HLO proto.
19  repeated xla.HloProto hlo_protos = 3;
20
21  enum ErrorCode {
22    UNKNOWN = 0;
23    OUT_OF_MEMORY = 1;
24  }
25  ErrorCode error_code = 4;
26}
27