2020-08-06
tf.reshape中的-1作用:
# tf.reshape( )
import tensorflow as tf
import numpy as np
x = np.array([[[[1],[2],[3]],[[4],[5],[6]]], [[[7],[8],[9]],\
[[10],[11],[12]]], [[[13],[14],[15]],[[16],[17],[18]]]])
print(x) # shape 大小规模为: 3 * 2 * 3 = 18
实例1 :
x_reshape
原创
2020-08-06 16:44:09 ·
86 阅读 ·
0 评论