humanoid-control-policy-net / control_policy.py
ermandmand's picture
Create control_policy.py
7511ca3 verified
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)