首页 > TAG信息列表 > ffn
68transformer
点击查看代码 import math import pandas as pd import torch from torch import nn from d2l import torch as d2l #@save class PositionWiseFFN(nn.Module): """基于位置的前馈网络""" # 全连接 # num_step会变 序列长度 # 所以序列当中每一个元素做一个全连69BERT
点击查看代码 import math import pandas as pd import torch from torch import nn from d2l import torch as d2l #@save class PositionWiseFFN(nn.Module): """基于位置的前馈网络""" # 全连接 # num_step会变 序列长度 # 所以序列当中每一个元素做一个全连