While making a video tutorial, I found that tf.tensor2d() does not throw an error if I pass it a "rank 3" shape, i.e.:
const values = [];
for (let i = 0; i < 30; i++) {
values[i] = Math.random()*100;
}
const shape = [2, 5, 3];
const data = tf.tensor2d(values, shape, 'int32');
console.log(data.toString());
CHOO CHOO!
I saw you comment "const data = tf.tensor2d(values, shape, 'int32');" you sneaky bastard ;)))
Most helpful comment
CHOO CHOO!