Computes the size of the variable Args: input: A variable of type Halide_Type_Float or Halide_Type_Int Returns: A variable. The shape is (), and type is Halide_Type_Int */
| 970 | A variable. The shape is (), and type is Halide_Type_Int |
| 971 | */ |
| 972 | VARP _Size(VARP input) { |
| 973 | std::unique_ptr<OpT> op(new OpT); |
| 974 | op->type = OpType_Size; |
| 975 | return (Variable::create(Expr::create(std::move(op), {input}))); |
| 976 | } |
| 977 | |
| 978 | /*Computes scaled exponential linear: scale * alpha * (exp(features) - 1) if < 0, scale * features otherwise. |
| 979 | Args: |