1/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. 2 3Licensed under the Apache License, Version 2.0 (the "License"); 4you may not use this file except in compliance with the License. 5You may obtain a copy of the License at 6 7 http://www.apache.org/licenses/LICENSE-2.0 8 9Unless required by applicable law or agreed to in writing, software 10distributed under the License is distributed on an "AS IS" BASIS, 11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12See the License for the specific language governing permissions and 13limitations under the License. 14==============================================================================*/ 15syntax = "proto3"; 16 17package tensorflow.tpu; 18 19import "tensorflow/compiler/tf2xla/host_compute_metadata.proto"; 20import "tensorflow/core/tpu/kernels/tpu_compilation_cache_common.proto"; 21 22// Response for GetTpuProgram RPC. 23message GetTpuProgramResponseExternal { 24 message Blob { 25 bytes data = 1; 26 } 27 28 Blob proto = 1; 29 tf2xla.HostComputeMetadata host_compute_metadata = 2; 30 bool may_modify_variables = 3; 31 Blob compiler_metadata = 4; 32 // Whether the program is empty, which could be true for sharding/unsharding 33 // entries. 34 bool is_empty = 5; 35} 36 37service TpuCompilationCacheServiceExternal { 38 // This method requests the cached proto that the TPU execute op has been 39 // instructed to execute. 40 rpc GetTpuProgram(GetTpuProgramRequest) 41 returns (GetTpuProgramResponseExternal) {} 42} 43