- 博客(2)
- 收藏
- 关注
转载 报错解决方法
ValueError: Expected more than 1 value per channel when training, got input size [1,768, 1, 1]报错解决方法输入批次只有一个数据点,而由于BatchNorm操作需要多于一个数据计算平均值,因此造成该错误。DataLoader中drop_last设置为True,把剩余的不够一个batch大小的数据扔掉完美解决。...
2021-05-30 11:04:37 807
原创 报错解决方法
ImportError: cannot import name 'get_config' from 'tensorflow.python.eager.context'报错解决方法pip install --upgrade tensorflowpip install --upgrade tensorflow-gpu完美解决。
2021-05-27 19:55:01 215
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人