added input dimension to ising initializer