Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getI32TensorAttr (0.14 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.h

        auto dim_type = RankedTensorType::get({1}, rewriter.getI32Type());
        auto reduction_indices = rewriter.create<arith::ConstantOp>(
            reduce_op.getLoc(), dim_type,
            rewriter.getI32TensorAttr({static_cast<int32_t>(axis)}));
    
        // Generate a Max and an ArgMax of as the mhlo op returns both while in TF
        // we have separate ops for them. If only one of them is used then the other
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/legalize_jax_random.cc

      auto result_shape = result_ty.getShape();
      for (auto element : result_shape) {
        result_shape_i32.push_back(static_cast<int32_t>(element));
      }
      auto result_shape_attr = builder.getI32TensorAttr(result_shape_i32);
      Value result_shape_tensor =
          builder.create<stablehlo::ConstantOp>(result_shape_attr);
      auto custom_code =
          IsJaxRandomUniform(func) ? "RandomUniform" : "RandomStandardNormal";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top