Esempio n. 1
0
 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))
Esempio n. 2
0
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)