how to convert to a tensor form a numpy array?

前端 未结 0 2007
迷失自我
迷失自我 2021-02-14 13:21

I tried to use the conver_to_tensor function

k = np.array([1,5,6,9,])
print(list(k))
k = list(k)
k = tf.convert_to_tensor(k)
k

Output:

<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题