Home | History | Annotate | Download | only in trace
      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.contrib.tensorboard;
     19 
     20 message TraceInfo {
     21   repeated OpInfo ops = 1;
     22   repeated FileInfo files = 2;
     23 }
     24 
     25 message OpInfo {
     26   string name = 1;
     27   string op_type = 2;
     28   string device = 3;
     29   repeated LineTrace traceback = 4;
     30   repeated TensorInfo inputs = 5;
     31   repeated TensorInfo outputs = 6;
     32 }
     33 
     34 message LineTrace {
     35   // Absolute file path.
     36   string file_path = 1;
     37   // 1-based line number.
     38   uint32 line_number = 2;
     39 }
     40 
     41 message TensorInfo {
     42   // Size of the tensor for each dimension. Value of -1 denotes "unknown"
     43   // size for that dimension.
     44   repeated int32 shape = 1;
     45   // The data type of the tensor.
     46   string dtype = 2;
     47   // Number of bytes per element in the tensor.
     48   uint32 num_bytes_per_elem = 3;
     49   // List of operation names that consume this tensor.
     50   repeated string consumers = 4;
     51 }
     52 
     53 message FileInfo {
     54   // Absolute file path to the source code.
     55   string file_path = 1;
     56   string source_code = 2;
     57   // Map from end of statement to start of statement. End and start are 0-based
     58   // line indexes.
     59   map<uint32, uint32> multiline_statements = 3;
     60 }
     61