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

Function updatedConfig

tfjs-layers/src/engine/container.ts:697–707  ·  view source on GitHub ↗

* Util shared between different serialization methods. * @returns LayersModel config with Keras version information added.

()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

getClassNameMethod · 0.65
getConfigMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…