tensorflow-2-public icon indicating copy to clipboard operation
tensorflow-2-public copied to clipboard

Another option for creating arrays Browser

Open santi-mir opened this issue 2 years ago • 0 comments

Here you create 2d tensors but it is not really necessary or wise imho.

It would be nice to know why you preferred rank-2 tensors there.

If you have Rank 1 tensors (vectors) use cons xs = tf.tensor1d(array) or in this case a very handy function is const xs = tf.range(0,n) for creating dummy data.

santi-mir avatar Mar 13 '23 18:03 santi-mir