@parameterized.named_parameters(jtu.cases_from_list(({'testcase_name': '_shape=[{}]_reps={}'.format(jtu.format_shape_dtype_string(shape, dtype), reps), 'shape': shape, 'dtype': dtype, 'reps': reps, 'rng_factory': jtu.rand_default} for reps in [(), (2,), (3, 4), (2, 3, 4)] for (shape, dtype) in _shape_and_dtypes(all_shapes, default_dtypes))))
def testTile(self, shape, dtype, reps, rng_factory):
    rng = rng_factory()
    onp_fun = (lambda arg: onp.tile(arg, reps))
    jnp_fun = (lambda arg: jnp.tile(arg, reps))
    args_maker = (lambda : [rng(shape, dtype)])
    self._CheckAgainstNumpy(onp_fun, jnp_fun, args_maker, check_dtypes=(shape is not jtu.PYTHON_SCALAR_SHAPE))
    self._CompileAndCheck(jnp_fun, args_maker, check_dtypes=True)
@parameterized.named_parameters(jtu.cases_from_list(({'testcase_name': '_shape=[{}]_reps={}'.format(jtu.format_shape_dtype_string(shape, dtype), reps), 'shape': shape, 'dtype': dtype, 'reps': reps, 'rng_factory': jtu.rand_default} for reps in [(), (2,), (3, 4), (2, 3, 4)] for (shape, dtype) in _shape_and_dtypes(all_shapes, default_dtypes))))
def testTile(self, shape, dtype, reps, rng_factory):
    rng = rng_factory()
    onp_fun = (lambda arg: onp.tile(arg, reps))
    jnp_fun = (lambda arg: jnp.tile(arg, reps))
    args_maker = (lambda : [rng(shape, dtype)])
    self._CheckAgainstNumpy(onp_fun, jnp_fun, args_maker, check_dtypes=(shape is not jtu.PYTHON_SCALAR_SHAPE))
    self._CompileAndCheck(jnp_fun, args_maker, check_dtypes=True)