Tan_pytorch_segmentation/pytorch_segmentation/PV_Attention/ACmix-Attention.py

9 lines
219 B
Python
Raw Permalink Normal View History

2025-05-19 20:48:24 +08:00
from model.attention.ACmix import ACmix
import torch
if __name__ == '__main__':
input = torch.randn(50, 256, 7, 7)
acmix = ACmix(in_planes=256, out_planes=256)
output = acmix(input)
print(output.shape)