Based on the error message I guess indices1 might contain the activation and the pooling indices returned by a previously used pooling layer?
If so, just pass the indices as the second argument to the unpooling layer.