Cognitron / models /decision_agent.py
dnnsdunca's picture
Create models/decision_agent.py
0567cd3 verified
raw
history blame contribute delete
414 Bytes
import torch
import torch.nn as nn
class DecisionAgent(nn.Module):
def __init__(self, config):
super(DecisionAgent, self).__init__()
self.fc_layers = nn.Sequential(
nn.Linear(config["perception_output_size"], 128),
nn.ReLU(),
nn.Linear(128, config["decision_output_size"])
)
def forward(self, x):
x = self.fc_layers(x)
return x