本关提供了一个Variable 类型的变量input,要求利用BatchNorm1d创建一个4维的 带有学习参数的正则化量 m,并输出其weight和bias。
import torch import torch.nn as nn from torch.autograd import Variable input = Variable(torch.Tensor([[1,2,3

本关提供了一个Variable 类型的变量input,要求利用BatchNorm1d创建一个4维的 带有学习参数的正则化量 m,并输出其weight和bias。
import torch import torch.nn as nn from torch.autograd import Variable input = Variable(torch.Tensor([[1,2,3