def testForceGPU(self):
    with self.assertRaisesRegexp(errors.InvalidArgumentError, 'Cannot assign a device to node'):
        with self.test_session(force_gpu=True):
            x = [True]
            y = [15]
            logging_ops.Assert(x, y).run()
def testForceGPU(self):
    with self.assertRaisesRegexp(errors.InvalidArgumentError, 'Cannot assign a device to node'):
        with self.test_session(force_gpu=True):
            x = [True]
            y = [15]
            logging_ops.Assert(x, y).run()