How to convert a numpy array to tensor
www.projectpro.io › recipes › convert-numpy-array-tensorThe value can be a numpy array, python list and python scalars, for the following the function will return a tensor. Step 1 - Import library import tensorflow as tf import numpy as np Step 2 - Take a Sample data array = np.array ( [ [1,2,3], [3,4,5], [5,6,7]]) print ("This is a numpy array:") print (array, array.shape, type (array))