def _comp_modes(self):
    try:
        return tt.as_tensor_variable(self.comp_dists.mode)
    except AttributeError:
        return tt.stack([comp_dist.mode for comp_dist in self.comp_dists], axis=1)
def _comp_modes(self):
    try:
        return tt.as_tensor_variable(self.comp_dists.mode)
    except AttributeError:
        return tt.stack([comp_dist.mode for comp_dist in self.comp_dists], axis=1)