Overview
Code
const input_layer_features = 5;
const input_layer_timesteps = input_layer_neurons / input_layer_features;
const input_shape = [ input_layer_features, input_layer_timesteps ];
//reshape the 10 output neurons to [5,2]
model.add(tf.layers.reshape({targetShape: input_shape}));