with self.session(graph=ops.Graph(), use_gpu=True):
      self.assertAllClose(init(shape), np.eye(*shape))