1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: tensorflow/core/protobuf/debug_event.proto 3 4 module tensorflow.debug_event; 5 6 import google.protobuf; 7 import tensorflow.tensor; 8 import tensorflow.graph_debug_info; 9 10 enum protocVersion = 3012004; 11 12 class DebugEvent 13 { 14 @Proto(1) double wallTime = protoDefaultValue!(double); 15 @Proto(2) long step = protoDefaultValue!(long); 16 enum WhatCase 17 { 18 whatNotSet = 0, 19 debugMetadata = 3, 20 sourceFile = 4, 21 stackFrameWithId = 6, 22 graphOpCreation = 7, 23 debuggedGraph = 8, 24 execution = 9, 25 graphExecutionTrace = 10, 26 graphId = 11, 27 } 28 WhatCase _whatCase = WhatCase.whatNotSet; 29 @property WhatCase whatCase() { return _whatCase; } 30 void clearWhat() { _whatCase = WhatCase.whatNotSet; } 31 @Oneof("_whatCase") union 32 { 33 @Proto(3) DebugMetadata _debugMetadata = protoDefaultValue!(DebugMetadata); mixin(oneofAccessors!_debugMetadata); 34 @Proto(4) SourceFile _sourceFile; mixin(oneofAccessors!_sourceFile); 35 @Proto(6) StackFrameWithId _stackFrameWithId; mixin(oneofAccessors!_stackFrameWithId); 36 @Proto(7) GraphOpCreation _graphOpCreation; mixin(oneofAccessors!_graphOpCreation); 37 @Proto(8) DebuggedGraph _debuggedGraph; mixin(oneofAccessors!_debuggedGraph); 38 @Proto(9) Execution _execution; mixin(oneofAccessors!_execution); 39 @Proto(10) GraphExecutionTrace _graphExecutionTrace; mixin(oneofAccessors!_graphExecutionTrace); 40 @Proto(11) string _graphId; mixin(oneofAccessors!_graphId); 41 } 42 } 43 44 class DebugMetadata 45 { 46 @Proto(1) string tensorflowVersion = protoDefaultValue!(string); 47 @Proto(2) string fileVersion = protoDefaultValue!(string); 48 } 49 50 class SourceFile 51 { 52 @Proto(1) string filePath = protoDefaultValue!(string); 53 @Proto(2) string hostName = protoDefaultValue!(string); 54 @Proto(3) string[] lines = protoDefaultValue!(string[]); 55 } 56 57 class StackFrameWithId 58 { 59 @Proto(1) string id = protoDefaultValue!(string); 60 @Proto(2) GraphDebugInfo.FileLineCol fileLineCol = protoDefaultValue!(GraphDebugInfo.FileLineCol); 61 } 62 63 class CodeLocation 64 { 65 @Proto(1) string hostName = protoDefaultValue!(string); 66 @Proto(2) string[] stackFrameIds = protoDefaultValue!(string[]); 67 } 68 69 class GraphOpCreation 70 { 71 @Proto(1) string opType = protoDefaultValue!(string); 72 @Proto(2) string opName = protoDefaultValue!(string); 73 @Proto(3) string graphName = protoDefaultValue!(string); 74 @Proto(4) string graphId = protoDefaultValue!(string); 75 @Proto(5) string deviceName = protoDefaultValue!(string); 76 @Proto(6) string[] inputNames = protoDefaultValue!(string[]); 77 @Proto(7) int numOutputs = protoDefaultValue!(int); 78 @Proto(8) CodeLocation codeLocation = protoDefaultValue!(CodeLocation); 79 } 80 81 class DebuggedGraph 82 { 83 @Proto(1) string graphId = protoDefaultValue!(string); 84 @Proto(2) string graphName = protoDefaultValue!(string); 85 @Proto(3) string[] instrumentedOps = protoDefaultValue!(string[]); 86 @Proto(4) bytes originalGraphDef = protoDefaultValue!(bytes); 87 @Proto(5) bytes instrumentedGraphDef = protoDefaultValue!(bytes); 88 } 89 90 class Execution 91 { 92 @Proto(1) string opType = protoDefaultValue!(string); 93 @Proto(2) int numOutputs = protoDefaultValue!(int); 94 @Proto(3) string graphId = protoDefaultValue!(string); 95 @Proto(4, Wire.none, Yes.packed) long[] inputTensorIds = protoDefaultValue!(long[]); 96 @Proto(5, Wire.none, Yes.packed) long[] outputTensorIds = protoDefaultValue!(long[]); 97 @Proto(6) TensorDebugMode tensorDebugMode = protoDefaultValue!(TensorDebugMode); 98 @Proto(7) TensorProto[] tensorProtos = protoDefaultValue!(TensorProto[]); 99 @Proto(8) CodeLocation codeLocation = protoDefaultValue!(CodeLocation); 100 } 101 102 class GraphExecutionTrace 103 { 104 @Proto(1) string tfdbgContextId = protoDefaultValue!(string); 105 @Proto(2) string opName = protoDefaultValue!(string); 106 @Proto(3) int outputSlot = protoDefaultValue!(int); 107 @Proto(4) TensorDebugMode tensorDebugMode = protoDefaultValue!(TensorDebugMode); 108 @Proto(5) TensorProto tensorProto = protoDefaultValue!(TensorProto); 109 @Proto(6) string deviceName = protoDefaultValue!(string); 110 } 111 112 enum TensorDebugMode 113 { 114 UNSPECIFIED = 0, 115 NO_TENSOR = 1, 116 CURT_HEALTH = 2, 117 CONCISE_HEALTH = 3, 118 FULL_HEALTH = 4, 119 SHAPE = 5, 120 FULL_NUMERICS = 6, 121 FULL_TENSOR = 7, 122 REDUCE_INF_NAN_THREE_SLOTS = 8, 123 }