import torch
import torch.nn as nn

class scene_discriminator(nn.Module):
    def __init__(self, pose_dim, nf=512):
        super(scene_discriminator, self).__init__()
        self.pose_dim = pose_dim
        self.main = nn.Sequential(
                nn.Linear(pose_dim*2, nf),
                nn.ReLU(True),
                nn.Linear(nf, nf),
                nn.ReLU(True),
                nn.Linear(nf, 1),
                nn.Sigmoid(),
                )

    def forward(self, input):
        output = self.main(torch.cat(input, 1).view(-1, self.pose_dim*2))
        return output


## input co dang sequence: [a,b], a va b la cac tensor
##torch.view = np.reshape()