Gather slices from params into a variable with shape specified by indices. Args: params: A variable. The variables from which to gather values. indices: A variable. Must be one of the following types: Halide_Type_Int. Returns: A variable. Has the same type as params. */
| 1002 | A variable. Has the same type as params. |
| 1003 | */ |
| 1004 | VARP _GatherND(VARP params, VARP indices) { |
| 1005 | std::unique_ptr<OpT> op(new OpT); |
| 1006 | op->type = OpType_GatherND; |
| 1007 | return (Variable::create(Expr::create(std::move(op), {params, indices}))); |
| 1008 | } |
| 1009 | |
| 1010 | VARP _GatherElements(VARP params, VARP indices) { |
| 1011 | std::unique_ptr<OpT> op(new OpT); |