MCPcopy
hub / github.com/tensorflow/tfjs / getContext

Method getContext

tfjs-node/src/canvas_test.ts:32–34  ·  view source on GitHub ↗
(type: '2d')

Source from the content-addressed store, hash-verified

30class MockCanvas {
31 constructor(public width: number, public height: number) {}
32 getContext(type: '2d'): MockContext {
33 return new MockContext();
34 }
35}
36
37describe('tf.browser.fromPixels with polyfills', () => {

Callers 15

loadMethod · 0.45
loadMethod · 0.45
handleClickTriggerFunction · 0.45
setupFakeVideoStreamFunction · 0.45
drawFunction · 0.45
constructorMethod · 0.45
readSyncMethod · 0.45
readDataGPUToCPUMethod · 0.45
fromPixelsFunction · 0.45
drawFunction · 0.45
webgl_ops_test.tsFile · 0.45
getWebGLRenderingContextFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected