Is there anything like this functionality (add array of layers) in tensorflow ?
const model = tf.sequential();
model.add([firstLayer, outputLayer]);
I read the docs but this seems not possible, but I presume there must be some way to do it.
Is there anything like this functionality (add array of layers) in tensorflow ?
const model = tf.sequential();
model.add([firstLayer, outputLayer]);
I read the docs but this seems not possible, but I presume there must be some way to do it.
I found it here TensorFlow.js API
const model = tf.sequential({
layers: [tf.layers.dense({units: 32, inputShape: [50]}),
tf.layers.dense({units: 4})]
});