import tensorflow as tf import numpy as np a = np.array([1,2,3,4,5,6,7,8,9],dtype='float32'); a = a.reshape(3,3); c = a + [22,33,44];#c.dtype='float64' c = c.astype(np.int32) #c.dtype = 'float32' print('c=',c);
import tensorflow as tf import numpy as np a = np.array([1,2,3,4,5,6,7,8,9],dtype='float32'); a = a.reshape(3,3); c = a + [22,33,44];#c.dtype='float64' c = c.astype(np.int32) #c.dtype = 'float32' print('c=',c);
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。