| import torch | |
| import torch.nn as nn | |
| class HumanoidControlPolicy(nn.Module): | |
| def __init__(self): | |
| super().__init__() | |
| self.fc1 = nn.Linear(180, 90) | |
| self.fc2 = nn.Linear(90, 45) | |
| def forward(self, x): | |
| x = torch.relu(self.fc1(x)) | |
| return self.fc2(x) | |
| import torch | |
| import torch.nn as nn | |
| class HumanoidControlPolicy(nn.Module): | |
| def __init__(self): | |
| super().__init__() | |
| self.fc1 = nn.Linear(180, 90) | |
| self.fc2 = nn.Linear(90, 45) | |
| def forward(self, x): | |
| x = torch.relu(self.fc1(x)) | |
| return self.fc2(x) | |