Given the following definitions
layerData = [3, 3, 2, 1, 1]
bias = [0.47, -0.45, 0.31, -0.09, 0.21 ,-0.18, 0.14, -0.45, -0.39, -0.14]
Starting at the head of the bias list, for each element N in layerData I would like to take the next N elements from bias and append that list to the result
This is what it should output:
[[0.47, -0.45, 0.31], [-0.09, 0.21, -0.18], [0.14, -0.45], [-0.39], [-0.14]]