Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for i32 (0.08 sec)

  1. tensorflow/compiler/mlir/lite/tests/prepare-composite-functions-tf.mlir

      %0 = "tf.Const"() {value = dense<1> : tensor<i32>} : () -> tensor<i32>
      %1 = "tf.ExpandDims"(%arg1, %0) : (tensor<*xi32>, tensor<i32>) -> tensor<*xi32>
      %2 = "tf.Const"() {value = dense<1> : tensor<i32>} : () -> tensor<i32>
      %3 = "tf.Const"() {value = dense<4096> : tensor<i32>} : () -> tensor<i32>
      %4 = "tf.Const"() {value = dense<0> : tensor<i32>} : () -> tensor<i32>
      %5 = "tf.Range"(%4, %3, %2) : (tensor<i32>, tensor<i32>, tensor<i32>) -> tensor<4096xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 122.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/side-effect-analysis-test.mlir

            // expected-remark@above {{ID: 0}}
            // expected-remark@above {{Successors: {1}}}
            %1 = "tf.CollectiveReduceV2"(%input, %group_size, %group_key, %instance_key) {merge_op = "Mul", final_op = "Id"} : (tensor<f32>, tensor<i32>, tensor<i32>, tensor<i32>) -> tensor<f32>
            // expected-remark@above {{ID: 1}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 20 04:39:18 UTC 2023
    - 129.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

        ArrayRef<int64_t> shape(rank);
        TensorType permutation_type =
            operand_type.cloneWith(shape, rewriter.getI32Type());
        // Cast permutation attribute from i64 to i32 as they are required to be i32
        // in TFLite.
        SmallVector<int32_t> permutation_i32 =
            CastI64ArrayToI32(op.getPermutation()).value();
        auto permutation_attr =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/optimize.cc

    // static shape and activation function is none. For example:
    //
    //   // %input: tensor<1x3x2xf32>
    //   %unpack:3 = "tfl.unpack"(%input) {axis = 1 : i32, num = 3 : i32}
    //   %res = "tfl.concatenation"(%unpack#0, %unpack#1, %unpack#2)
    //        {axis = -1 : i32, fused_activation_function = "NONE"}
    //
    // can be optimized to
    //
    //   %cst = arith.constant dense<[1, 6]> : tensor<2xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

            input_type.getNumElements() != output_type.getNumElements()) {
          return failure();
        }
        // Reshape op supports only new shape as I32. Add a cast op to I32 always
        // to make sure the introduced Reshape Op is a valid one.
        auto result_type = tensorflow::GetTypeFromTFTensorShape(
            op.getShape().getType().cast<RankedTensorType>().getShape(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

                .getElementType();
    
        // The mhlo dynamic_slice's start_indices can be either signed/unsigned
        // int32/int64. However, TF only takes in either i32 or i64 types for begin,
        // so we will always put a cast.
        Type signed_start_indices_element_type;
        if (start_indices_element_type.isInteger(32)) {
          signed_start_indices_element_type = rewriter.getI32Type();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

            mlir::cast<mlir::TensorType>(input_type).getElementType();
        RankedTensorType type = tensorflow::GetTypeFromTFTensorShape(
            {static_cast<int64_t>(shape.size())}, element_type);
        // Input could only be i32 or i64. For i32, downcast to int32_t array.
        if (element_type.isInteger(32)) {
          SmallVector<int32_t, 4> i32_shape;
          for (auto s : shape) i32_shape.push_back(static_cast<int32_t>(s));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
Back to top