摘要:
import numpy as np import tensorflow as tf # ************************* gather()根据索引提取数据 ***************************** a = tf.range(5) print('原张量a:',a) 阅读全文
posted @ 2020-07-27 16:55
山…隹
阅读(395)
评论(0)
推荐(0)
摘要:
import tensorflow as tf import numpy as np ##############################维度变换tf.reshape()函数###################################### a = tf.range(30) b = 阅读全文
posted @ 2020-07-27 16:19
山…隹
阅读(699)
评论(0)
推荐(0)
摘要:
import tensorflow as tf ############################创建全0全1张量######################### a = tf.ones(shape = (3,5)) print('a:',a) b = tf.ones([6]) print( 阅读全文
posted @ 2020-07-27 14:15
山…隹
阅读(423)
评论(0)
推荐(0)

浙公网安备 33010602011771号