摘要:
x = {'a': 1, 'b': 2} y = {'b': 3, 'c': 4} z = {**x, **y} 输出结果 {'a': 1, 'b': 3, 'c': 4} 注意:如果key相同,第二个dict的item会覆盖第一个dict的item... 阅读全文
摘要:
官方说明: If both x and y are None, then this operation returns the coordinates of true elements of condition. The coordinates are r... 阅读全文
摘要:
官方说明: If both x and y are None, then this operation returns the coordinates of true elements of condition. The coordinates are returned in a 2 D tenso 阅读全文
摘要:
如果t是二维数组, 等价于 ;如果是三维数值, 等价于 。 和`np.newaxis`功能相同,都是增加维度。 阅读全文
摘要:
如果t是二维数组,t[...,1]等价于t[:,1];如果是三维数值,t[...,1]等价于t[:,:,1]。 tf.newaxis和np.newaxis功能相同,都是增加维度。 t=tf.constant([[1,2,3],[4,5,6]]) t[... 阅读全文