MCPcopy Create free account
hub / github.com/tensorflow/tensorboard / index_impl

Method index_impl

tensorboard/plugins/text/text_plugin.py:236–249  ·  view source on GitHub ↗
(self, ctx, experiment)

Source from the content-addressed store, hash-verified

234 return base_plugin.FrontendMetadata(element_name="tf-text-dashboard")
235
236 def index_impl(self, ctx, experiment):
237 mapping = self._data_provider.list_tensors(
238 ctx,
239 experiment_id=experiment,
240 plugin_name=metadata.PLUGIN_NAME,
241 )
242 result = {run: [] for run in mapping}
243 for run, tag_to_content in mapping.items():
244 for tag, metadatum in tag_to_content.items():
245 md = metadata.parse_plugin_metadata(metadatum.plugin_content)
246 if not self._version_checker.ok(md.version, run, tag):
247 continue
248 result[run].append(tag)
249 return result
250
251 @wrappers.Request.application
252 def tags_route(self, request):

Callers 3

tags_routeMethod · 0.95
testIndexMethod · 0.45
testPluginIndexImplMethod · 0.45

Calls 4

itemsMethod · 0.80
okMethod · 0.80
list_tensorsMethod · 0.45
appendMethod · 0.45

Tested by 2

testIndexMethod · 0.36
testPluginIndexImplMethod · 0.36