Create Models/sensor_expert.py
Browse files- Models/sensor_expert.py +12 -0
Models/sensor_expert.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import torch
|
2 |
+
import torch.nn as nn
|
3 |
+
import torch.nn.functional as F
|
4 |
+
|
5 |
+
class SensorExpert(nn.Module):
|
6 |
+
def __init__(self):
|
7 |
+
super(SensorExpert, self).__init__()
|
8 |
+
self.fc1 = nn.Linear(10, 128)
|
9 |
+
|
10 |
+
def forward(self, x):
|
11 |
+
x = F.relu(self.fc1(x))
|
12 |
+
return x
|