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

Method componentDidMount

tfjs-react-native/integration_rn59/App.tsx:55–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 }
54
55 async componentDidMount() {
56 await tf.setBackend(BACKEND_TO_USE);
57 await tf.ready();
58 this.setState({
59 isTfReady: true,
60 });
61 }
62
63 showDiagnosticScreen() {
64 this.setState({ currentScreen: 'diag' });

Callers

nothing calls this directly

Calls 2

setBackendMethod · 0.80
readyMethod · 0.80

Tested by

no test coverage detected