Share Brilliantly
tensor flow
const shape = [2, 3]; // 2 rows, 3 columns
const tensor = tf.tensor([1.0, 2.0, 3.0, 10.0, 20.0, 30.0], shape);
tensor.print(); // print Tensor values
// Output: [[1 , 2 , 3 ],
// [10, 20, 30]]
//if not created within tidy, must dipose of tensor
tensor.dispose();
Try it!