小编Mit*_*khe的帖子

TensorFlow 中 pytorch NN.module 的别名是什么?

我正在尝试在 TensorFlow 中实现 Triplet Attention。我面临的问题之一是在NN.moduleTensorFlow 中使用什么来代替

class ChannelPool(nn.Module):
    def forward(self, x):
        return torch.cat( (torch.max(x,1)[0].unsqueeze(1), torch.mean(x,1).unsqueeze(1)), dim=1)
Run Code Online (Sandbox Code Playgroud)

我应该在此处放置什么nn.Module

python deep-learning tensorflow pytorch

1
推荐指数
1
解决办法
2068
查看次数

标签 统计

deep-learning ×1

python ×1

pytorch ×1

tensorflow ×1