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==============================================================================*/ 15 16// This file is a copy of the TensorBoard ProjectorConfig proto. 17// Keep this file in sync with the source proto definition at 18// https://github.com/tensorflow/tensorboard/blob/master/tensorboard/plugins/projector/projector_config.proto 19 20syntax = "proto3"; 21 22package third_party.tensorflow.python.keras.protobuf; 23 24message SpriteMetadata { 25 string image_path = 1; 26 // [width, height] of a single image in the sprite. 27 repeated uint32 single_image_dim = 2; 28} 29 30message EmbeddingInfo { 31 string tensor_name = 1; 32 string metadata_path = 2; 33 string bookmarks_path = 3; 34 // Shape of the 2D tensor [N x D]. If missing, it will be inferred from the 35 // model checkpoint. 36 repeated uint32 tensor_shape = 4; 37 SpriteMetadata sprite = 5; 38 // Path to the TSV file holding the tensor values. If missing, the tensor 39 // is assumed to be stored in the model checkpoint. 40 string tensor_path = 6; 41} 42 43message ProjectorConfig { 44 // Path to the checkpoint file. Use either this or model_checkpoint_dir. 45 string model_checkpoint_path = 1; 46 repeated EmbeddingInfo embeddings = 2; 47 // Path to the checkpoint directory. The directory will be scanned for the 48 // latest checkpoint file. 49 string model_checkpoint_dir = 3; 50} 51