MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / setTrainButtonCallback

Function setTrainButtonCallback

mnist/ui.js:121–129  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

119}
120
121export function setTrainButtonCallback(callback) {
122 const trainButton = document.getElementById('train');
123 const modelType = document.getElementById('model-type');
124 trainButton.addEventListener('click', () => {
125 trainButton.setAttribute('disabled', true);
126 modelType.setAttribute('disabled', true);
127 callback();
128 });
129}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected