Yu Zhang ’s Blog

follow your heart

Pytorch learning 2

pytorch learning 2 1. 对Resnet的理解: 从宏观上看是一个weight layer + 激活函数 + weight layer的结构,但还需理解weight layer中的结构特性 可以具体拆分开是 # Resnet block结构:conv + BN conv1 + BN1 = weight layer1 conv2 + BN2 = weight laye...

Pytorch learning 1

pytorch learning 1: acc_sum += (net(X.to(device)).argmax(dim=1) == y.to(device)).float().sum().cpu().item() # dim = 1 每一行的最大列索引下标 batch size/ epoch/ iteration 的关系 一个epoch指代**所有的数据**送入网络中完成一次前...