Skip to content

Commit 5c63497

Browse files
committed
whenxuan: init the global filter network
1 parent 65ffe98 commit 5c63497

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import torch
2+
from torch import nn
3+
4+
5+
class GlobalFilterModule(nn.Module):
6+
"""
7+
The Global Filter Module for Time Series (1D) or Image (2D) Analysis.
8+
This module implements a global filter mechanism to capture long-range dependencies.
9+
10+
References: "Global Filter Networks for Image Classification" by Yuchen Fan, et al.
11+
12+
URL: https://arxiv.org/abs/2107.00645
13+
"""
14+
15+
def __init__(self, *args, **kwargs):
16+
super().__init__(*args, **kwargs)
17+
pass

0 commit comments

Comments
 (0)