function tile$1(x, n) {
	  if (!Array.isArray(n)) {
	    n = [n];
	  }

	  if (x.rank !== n.length) {
	    throw new ValueError("The length of input n (" + n.length + ") does not match " + ("the number of dimensions in input x (" + x.rank + ")"));
	  }

	  return tile(x, n);
	}
Creates a tensor by tiling `x` by `n`.
@param x A tensor.
@param n An Array of integers or a single integer. If an Array, the length
  must be the same as the number of dimensions in `x`. If a single integer,
  it will be treated as an Array of length 1.