What is this ? Im learning tensorflow.js with youtube video "6.3: TensorFlow.js: Variables & Operations - Intelligence and Learning".
Everything works well until i try this get().
const getRandomInt = (max) => {
return Math.floor(Math.random() * Math.floor(max));
};
const values = [];
for (let i = 0; i< 30; i++) {
values[i] = getRandomInt(10);
}
const shape = [2, 5, 3];
const matriisi = tf.tensor3d(values, shape, 'int32');
console.log(matriisi.get(3));
And web console says:
"Error: Number of coordinates in get() must match the rank of the tensor"