* Util shared between different serialization methods. * @returns LayersModel config with Keras version information added.
()
| 695 | * @returns LayersModel config with Keras version information added. |
| 696 | */ |
| 697 | protected updatedConfig(): serialization.ConfigDict { |
| 698 | const theConfig = this.getConfig(); |
| 699 | const modelConfig: serialization.ConfigDict = {}; |
| 700 | modelConfig['className'] = this.getClassName(); |
| 701 | modelConfig['config'] = theConfig; |
| 702 | modelConfig['kerasVersion'] = `tfjs-layers ${layersVersion}`; |
| 703 | // TODO(nielsene): Replace something like K.backend() once |
| 704 | // possible. |
| 705 | modelConfig['backend'] = 'TensorFlow.js'; |
| 706 | return modelConfig; |
| 707 | } |
| 708 | |
| 709 | /** |
| 710 | * Returns a JSON string containing the network configuration. |
nothing calls this directly
no test coverage detected
searching dependent graphs…