AssertionError: size of input tensor and input format are different.         tensor shape: (64, 3, 32, 32), input_format: CHW

原因:tensor的维度是(64, 3, 32, 32),而要求输入格式是CHW,两者不匹配所以报错。

解决方法:用add_images方法替换add_image方法即可。

 posted on 2024-03-09 22:11  会飞的金鱼  阅读(112)  评论(0)    收藏  举报