()
| 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 | } |
| 1114 | serialization.registerClass(Sequential); |
nothing calls this directly
no test coverage detected