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

Method constructor

tfjs-data/src/dataset_test.ts:59–64  ·  view source on GitHub ↗
(setSize = false)

Source from the content-addressed store, hash-verified

57export class TestDataset extends tfd.Dataset<TensorContainerObject> {
58 override readonly size: number;
59 constructor(setSize = false) {
60 super();
61 if (setSize) {
62 this.size = 200;
63 }
64 }
65 async iterator(): Promise<LazyIterator<{}>> {
66 return new TestObjectIterator();
67 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected