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

Function asyncTransform

tfjs-data/src/util/deep_map_test.ts:46–52  ·  view source on GitHub ↗
(x: any)

Source from the content-addressed store, hash-verified

44
45// tslint:disable-next-line:no-any
46function asyncTransform(x: any): DeepMapAsyncResult {
47 const result = transform(x);
48 return {
49 value: result.value === null ? null : Promise.resolve(result.value),
50 recurse: result.recurse
51 };
52}
53
54describe('deepMap', () => {
55 it('maps single mappable objects', () => {

Callers

nothing calls this directly

Calls 1

transformFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…