How to extract values/convert to 1d array

Viewed 56

I have a tensor say t1 that gathers/appends values of tensor and has the following form:

[<tf.Tensor 'mul_16165:0' shape=(52,) dtype=float32>, 
 <tf.Tensor 'mul_32331:0' shape=(52,) dtype=float32>, 
 <tf.Tensor 'mul_48497:0' shape=(52,) dtype=float32>....

The length of t1 is 12 (can vary but is not important).

The type of t1 is <class 'list'>.

My question is how can I unpack this list so that I can get all values in a single row/1d array? The final result/tensor would have length/size (52*12 = 624) (shape(624,)) tensor.

Further, can I view the values inside the final tensor or somehow in t1?

0 Answers
Related