Home | History | Annotate | Download | only in projector
      1 /* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
      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 
     16 syntax = "proto3";
     17 
     18 package tensorflow;
     19 
     20 message SpriteMetadata {
     21   string image_path = 1;
     22   // [width, height] of a single image in the sprite.
     23   repeated uint32 single_image_dim = 2;
     24 }
     25 
     26 message EmbeddingInfo {
     27   string tensor_name = 1;
     28   string metadata_path = 2;
     29   string bookmarks_path = 3;
     30   // Shape of the 2D tensor [N x D]. If missing, it will be inferred from the
     31   // model checkpoint.
     32   repeated uint32 tensor_shape = 4;
     33   SpriteMetadata sprite = 5;
     34   // Path to the TSV file holding the tensor values. If missing, the tensor
     35   // is assumed to be stored in the model checkpoint.
     36   string tensor_path = 6;
     37 }
     38 
     39 message ProjectorConfig {
     40   // Path to the checkpoint file. Use either this or model_checkpoint_dir.
     41   string model_checkpoint_path = 1;
     42   repeated EmbeddingInfo embeddings = 2;
     43   // Path to the checkpoint directory. The directory will be scanned for the
     44   // latest checkpoint file.
     45   string model_checkpoint_dir = 3;
     46 }
     47