data_format=data_format)
// Test invalid use cases
for backend in (KTH, KTF):
x = backend.variable(np.random.random(x_shape))
with pytest.raises(ValueError):
backend.resize_images(x, 2, 2, data_format="channels_middle")
def test_resize_volumes(self):
After Change
data_format=data_format)
// Test invalid use cases
xval = np.random.random(x_shape)
for k in BACKENDS:
with pytest.raises(ValueError):
k.resize_images(k.variable(xval), 2, 2,
data_format="channels_middle")
def test_resize_volumes(self):