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

Method text_impl

tensorboard/plugins/text/text_plugin.py:258–272  ·  view source on GitHub ↗
(self, ctx, run, tag, experiment, enable_markdown)

Source from the content-addressed store, hash-verified

256 return http_util.Respond(request, index, "application/json")
257
258 def text_impl(self, ctx, run, tag, experiment, enable_markdown):
259 all_text = self._data_provider.read_tensors(
260 ctx,
261 experiment_id=experiment,
262 plugin_name=metadata.PLUGIN_NAME,
263 downsample=self._downsample_to,
264 run_tag_filter=provider.RunTagFilter(runs=[run], tags=[tag]),
265 )
266 text = all_text.get(run, {}).get(tag, None)
267 if text is None:
268 return []
269 return [
270 process_event(d.wall_time, d.step, d.numpy, enable_markdown)
271 for d in text
272 ]
273
274 @wrappers.Request.application
275 def text_route(self, request):

Callers 2

text_routeMethod · 0.95
testTextMethod · 0.80

Calls 3

process_eventFunction · 0.85
getMethod · 0.65
read_tensorsMethod · 0.45

Tested by 1

testTextMethod · 0.64