File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed
tensorboard/plugins/graph Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ def add_row_item(run, tag=None):
116116 for (run_name , tag_to_time_series ) in six .iteritems (mapping ):
117117 for tag in tag_to_time_series :
118118 (run_item , tag_item ) = add_row_item (run_name , tag )
119- run_item ['op_graph ' ] = True
119+ run_item ['run_graph ' ] = True
120120 if tag_item :
121121 tag_item ['op_graph' ] = True
122122 return result
@@ -249,7 +249,7 @@ def graph_route(self, request):
249249 """Given a single run, return the graph definition in protobuf format."""
250250 experiment = plugin_util .experiment_id (request .environ )
251251 run = request .args .get ('run' )
252- tag = request .args .get ('tag' , '' )
252+ tag = request .args .get ('tag' )
253253 conceptual_arg = request .args .get ('conceptual' , False )
254254 is_conceptual = True if conceptual_arg == 'true' else False
255255
Original file line number Diff line number Diff line change @@ -173,12 +173,8 @@ def test_info(self, plugin):
173173 'run' : '_RUN_WITH_GRAPH_WITHOUT_METADATA' ,
174174 'run_graph' : True ,
175175 'tags' : {},
176- }
177- }
178-
179- if not plugin ._data_provider :
180- # Hack, for now.
181- expected ['_RUN_WITHOUT_GRAPH_WITH_METADATA' ] = {
176+ },
177+ '_RUN_WITHOUT_GRAPH_WITH_METADATA' : {
182178 'run' : '_RUN_WITHOUT_GRAPH_WITH_METADATA' ,
183179 'run_graph' : False ,
184180 'tags' : {
@@ -189,9 +185,18 @@ def test_info(self, plugin):
189185 'op_graph' : False ,
190186 },
191187 },
192- }
188+ },
189+ }
190+
191+ if plugin ._data_provider :
192+ # Hack, for now.
193+ # Data providers don't yet pass RunMetadata, so this entry excludes it.
194+ expected ['_RUN_WITH_GRAPH_WITH_METADATA' ]['tags' ] = {}
195+ # Data providers don't yet pass RunMetadata, so this entry is completely omitted.
196+ del expected ['_RUN_WITHOUT_GRAPH_WITH_METADATA' ]
193197
194- self .assertItemsEqual (expected , plugin .info_impl ('eid' ))
198+ actual = plugin .info_impl ('eid' )
199+ self .assertEqual (expected , actual )
195200
196201 @with_runs ([_RUN_WITH_GRAPH_WITH_METADATA ])
197202 def test_graph_simple (self , plugin ):
You can’t perform that action at this time.
0 commit comments