摘要: 各种normalization讲解 在各种网络中的应用 layer norm 参数 torch.nn.LayerNorm( normalized_shape: Union[int, List[int], torch.Size], eps: float = 1e-05, elementwise_aff 阅读全文
posted @ 2021-11-13 13:38 zae 阅读(87) 评论(0) 推荐(0) 编辑
摘要: numpy计算正确 import numpy as np np.var([[1, 2], [2, 3]]) pytorch计算不对? X_test = torch.tensor([[1, 2], [2, 3]], dtype=torch.float32) torch.var(X_test),torc 阅读全文
posted @ 2021-11-13 13:30 zae 阅读(637) 评论(0) 推荐(0) 编辑