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

Function createCardMetadata

tensorboard/webapp/metrics/testing.ts:298–316  ·  view source on GitHub ↗
(plugin?: PluginType)

Source from the content-addressed store, hash-verified

296}
297
298export function createCardMetadata(plugin?: PluginType): CardMetadata {
299 switch (plugin) {
300 case PluginType.IMAGES:
301 return {plugin, tag: 'tagA', runId: 'run1', sample: 999};
302 case PluginType.HISTOGRAMS:
303 return {
304 plugin,
305 tag: 'tagA',
306 runId: 'run1',
307 };
308 case PluginType.SCALARS:
309 default:
310 return {
311 plugin: PluginType.SCALARS,
312 tag: 'tagA',
313 runId: null,
314 };
315 }
316}
317
318export function provideMockCardSeriesData(
319 storeSelectSpy: jasmine.Spy,

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…