MCPcopy Create free account
hub / github.com/tensorflow/tfjs / complexifyExampleAsDict

Function complexifyExampleAsDict

tfjs-data/src/dataset_test.ts:71–86  ·  view source on GitHub ↗
(simple: any)

Source from the content-addressed store, hash-verified

69
70// tslint:disable-next-line:no-any
71function complexifyExampleAsDict(simple: any): {} {
72 const v = simple['number'];
73 const w = simple['numberArray'];
74 const x = simple['Tensor'];
75 const y = simple['Tensor2'];
76 const z = simple['string'];
77 return {
78 a: {v, w, q: {aa: {x, y, z}, ab: {v, w, x}}},
79 b: {
80 ba: {baa: y, bab: z, bac: v},
81 bb: {bba: w, bbb: x, bbc: y},
82 bc: {bca: z, bcb: v, bcc: w}
83 },
84 c: {ca: {x, y, z}, cb: {v, w, x}, cc: {y, z, v}},
85 };
86}
87
88describeAllEnvs('Dataset', () => {
89 it('can be concatenated', async () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…