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

Method constructor

tfjs-layers/src/engine/training_test.ts:1403–1409  ·  view source on GitHub ↗
(readonly recordedParams: Params[])

Source from the content-addressed store, hash-verified

1401
1402 class CustomCallbackForTest extends tfl.CustomCallback {
1403 constructor(readonly recordedParams: Params[]) {
1404 super({
1405 onTrainBegin: async () => {
1406 recordedParams.push(this.params);
1407 }
1408 });
1409 }
1410 }
1411
1412 it('Custom callback params: no validation', async () => {

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected