记录:tensorflow中获取tensor大小 yourTensor.get_shape().as_list() 直接输出即可。 参考https://www.cnblogs.com/huangshiyu13/p/7531085.html