提供了函数化的

torch.nn 实现了各个算子层,每层包含相同的算子。

torch.nn.functional 实现了各个算子。每一层可以包含不同的算子,用来实现比torch.nn更加细致的运算。