'Convert a GameState to a Theano-compatible tensor'

def state_to_tensor(self, state):

    feat_tensors = [proc(state) for proc in self.processors]
    (f, s) = (self.output_dim, state.size)
    return np.concatenate(feat_tensors).reshape((1, f, s, s))
