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

Method getConfig

tfjs-layers/src/models.ts:1099–1112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1097
1098 // tslint:disable-next-line:no-any
1099 override getConfig(): any {
1100 // NOTE(cais): We override the return type of getConfig() to `any` here,
1101 // because the `Sequential` class is a special case among `Container`
1102 // subtypes in that its getConfig() method returns an Array (not a
1103 // dict).
1104 const layers: serialization.ConfigDict[] = [];
1105 for (const layer of this.layers) {
1106 const dict: serialization.ConfigDict = {};
1107 dict['className'] = layer.getClassName();
1108 dict['config'] = layer.getConfig();
1109 layers.push(dict);
1110 }
1111 return {name: this.name, layers};
1112 }
1113}
1114serialization.registerClass(Sequential);

Callers

nothing calls this directly

Calls 2

getClassNameMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected