Note: This example doesn't really do anything except save and then load the Keras model
If you get a printout of the model, then the example has been successful.
So first lets just define a Multi Input Keras model.
and then have it's json file show up in the text area. This program uses your local storage to save and then upload the
"tensorflowjs_models/myMultiModel01/model_topology" file to the textarea
Normal Keras Sequential Model
model = tf.sequential(); // no const so that it is a global variable
model.add(tf.layers.dense({ units: 20, inputShape: [1] }) );
model.add(tf.layers.dense({ units: 20 }) );
model.add(tf.layers.dense({ units: 1 }) );
This Advanced Keras multiple input single output model
model2 = tf.model({inputs: [myInput1,myInput2], outputs: myConcatenate1Dense4}); // This would be a global model
Note: Check your developer console --> Application --> Key for the 4 files that may be saved differently on your machine.
On my machine they have the same root as the below localStorage identifier: info model_topology (the one this code loads) weight_data (this is in binary format. Does not load into this textarea) weight_specs