function gather$1(reference, indices, axis) {
	  return tidy(function () {
	    if (Array.isArray(indices)) {
	      indices = tensor1d(indices, 'int32');
	    } else {
	      indices = indices.toInt();
	    }

	    return gather(reference, indices, axis);
	  });
	}
Retrieves the elements of indices `indices` in the tensor `reference`.
@param reference A tensor.
@param indices An integer tensor of indices or an `Array` of integers.
@param axis Axis along which to perform the gather operation.
@returns The result of the gathering as a tensor.