问题描述
使用tf.zeros
初始化大小为10 x 256 x 256 x 3的零的4-d张量。
images = # TODO
assert isinstance(images,tf.Tensor),"matrix must be a tf Tensor object"
assert tf.rank(images).numpy() == 4,"matrix must be of rank 4"
assert tf.shape(images).numpy().tolist() == [10,256,3],"matrix is incorrect shape"
解决方法
<div class="character">Press any key</div>
这是家庭作业,对吧?