def check_single_tensor_operation(function_name, input_shape, backend_list, **kwargs):
val = np.random.random(input_shape) - 0.5
z_list = []
for k in backend_list:
After Change
if assert_value_with_ref is not None:
assert_list_with_ref(z_list, assert_value_with_ref)
else:
assert_list_pairwise(z_list, allclose=assert_value_equality)
assert_list_keras_shape(z_list)
def check_two_tensor_operation(function_name, x_shape_or_val,