def append(arr, values, axis=None): if axis is None: return concatenate([array_ops.ravel(arr), array_ops.ravel(values)], 0) else: return concatenate([arr, values], axis=axis)
def run_test(arr, *args, **kwargs): for fn in self.array_transforms: arg = fn(arr) self.match(array_ops.ravel(arg, *args, **kwargs), np.ravel(arg, *args, **kwargs))