File size: 375 Bytes
31899f4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import torch
import torch.nn as nn

class SensorEncoder(nn.Module):
    def __init__(self):
        super().__init__()
        self.fc = nn.Linear(10, 32)

    def forward(self, x):
        return self.fc(x)

def main():
    model = SensorEncoder()
    dummy_input = torch.randn(1, 10)
    output = model(dummy_input)
    print(output)

if __name__ == "__main__":
    main()