def initial_act(self, batch_size=None):
    batched = (batch_size is not None)
    batch_size = (batch_size or 1)
    act = []
    for (dim, typ) in self.act_dims_and_types:
        if (typ == spaces.discrete):
            act.append((- np.ones(batch_size)))
        elif (typ == spaces.box):
            act.append((- np.ones([batch_size, dim])))
    if batched:
        return act
    else:
        return zip(*act)[0]
def initial_act(self, batch_size=None):
    batched = (batch_size is not None)
    batch_size = (batch_size or 1)
    act = []
    for (dim, typ) in self.act_dims_and_types:
        if (typ == spaces.discrete):
            act.append((- np.ones(batch_size)))
        elif (typ == spaces.box):
            act.append((- np.ones([batch_size, dim])))
    if batched:
        return act
    else:
        return zip(*act)[0]