function slice1d_(x, begin, size) {
    const $x = (0, _tensorUtilEnv.convertToTensor)(x, "x", "slice1d");
    _util.assert($x.rank === 1, ()=>`slice1d expects a rank-1 tensor, but got a rank-${$x.rank} tensor`);
    return (0, _slice.slice)($x, [
        begin
    ], [
        size
    ]);
}
Extracts a 1D slice from 1D array starting at coordinates `begin` and is
of length `size`. See `slice` for details.