Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for F32 (0.05 sec)

  1. tensorflow/compiler/mlir/lite/tests/ops.mlir

    func.func @testAbs(tensor<? x f32>) -> tensor<? x f32> {
    ^bb0(%arg0: tensor<? x f32>):
      // CHECK: "tfl.abs"(%arg0)
      %0 = "tfl.abs"(%arg0): (tensor<? x f32>) -> tensor<? x f32>
      func.return %0 : tensor<? x f32>
    }
    
    // CHECK-LABEL: testAddN
    func.func @testAddN(tensor<? x f32>, tensor<? x f32>, tensor<? x f32>) -> tensor<? x f32> {
    ^bb0(%arg0: tensor<? x f32>, %arg1: tensor<? x f32>, %arg2: tensor<? x f32>):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 189.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/canonicalize.mlir

      %0:3 = "tf.CaseRegion"(%index) ({
          %mul = "tf.Mul"(%arg0, %arg1) : (tensor<f32>, tensor<f32>) -> tensor<f32>
          "tf.Yield"(%arg1, %mul, %arg2) : (tensor<f32>, tensor<f32>, tensor<!tf_type.resource>) -> ()
        }, {
          %sub = "tf.Sub"(%arg0, %arg1) : (tensor<f32>, tensor<f32>) -> tensor<f32>
          "tf.Yield"(%arg1, %sub, %arg2) : (tensor<f32>, tensor<f32>, tensor<!tf_type.resource>) -> ()
        }, {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 132.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/tests/uniform-quantized-stablehlo-to-tfl.mlir

    // CHECK: return %[[CONV2D]] : tensor<1x3x3x2x!quant.uniform<i8:f32, 4.000000e+00>>
    
    // -----
    
    func.func @convolution_upstream_srq_non_const_filter(%arg0: tensor<1x3x3x4x!quant.uniform<i8:f32, 1.000000e+0:-100>>, %arg1: tensor<3x3x4x2x!quant.uniform<i8:f32:3, {2.000000e+2, 3.000000e+3}>>) -> tensor<1x3x3x2x!quant.uniform<i8:f32, 4.000000e+0>> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 17:10:32 UTC 2024
    - 106.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

      let arguments = (
        ins TFL_TensorOf<[F32, QI8, QI16]>:$input,
    
        // Weights
        TFL_TensorOfOrNone<[F32, QI8]>:$input_to_input_weights,
        TFL_TensorOf<[F32, QI8]>:$input_to_forget_weights,
        TFL_TensorOf<[F32, QI8]>:$input_to_cell_weights,
        TFL_TensorOf<[F32, QI8]>:$input_to_output_weights,
    
        // Recurrent weights
        TFL_TensorOfOrNone<[F32, QI8]>:$recurrent_to_input_weights,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tests/prepare-composite-functions-tf.mlir

      %1 = "tf.Const"() {value = dense<0.0> : tensor<f32>} : () -> tensor<f32>
      %2 = "tf.Const"() {value = dense<0.0> : tensor<f32>} : () -> tensor<f32>
      %3 = "tf.Const"() {value = dense<0.0> : tensor<f32>} : () -> tensor<f32>
      func.return %0, %1, %2, %3 : tensor<f32>, tensor<f32>, tensor<f32>, tensor<f32>
    }
    
    // CHECK-LABEL: func @tflite_custom_nms(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 122.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tests/legalize-tf.mlir

    func.func @mul_complex32(%arg0: tensor<14xcomplex<f32>>, %arg1: tensor<14xcomplex<f32>>) -> tensor<14xcomplex<f32>> {
      %0 = "tf.Mul"(%arg0, %arg1) : (tensor<14xcomplex<f32>>, tensor<14xcomplex<f32>>) -> tensor<14xcomplex<f32>>
      func.return %0: tensor<14xcomplex<f32>>
    
    // CHECK-LABEL: mul_complex32
    // CHECK:  tfl.mul %arg0, %arg1 {fused_activation_function = "NONE"} : tensor<14xcomplex<f32>>
    // CHECK:  return
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 05 01:54:33 UTC 2024
    - 153.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

              %0 = "tf.opA"(%arg0) : (tensor<f32>) -> tensor<f32>
              return %0 : tensor<f32>
            }
          }
        }
        ```
    
        will be transformed into:
    
        ```mlir
        module  {
          func @foo(%arg0: tensor<f32>) -> tensor<f32> {
            %0 = tf_executor.graph {
              %outputs, %control = tf_executor.island {
                %1 = "tf.opA"(%arg0) : (tensor<f32>) -> tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

    //   * Input tensors are per-tensor uniform quantized (i8->f32)
    //     tensors (full integer) with shape [..., r_x, c_x] or [..., c_x, r_x].
    //   * The filter tensor is a per-tensor uniform quantized (i8->f32) tensor
    //     (constant or activation) with shape [..., r_y, c_y] or [..., c_y, r_y].
    //   * Output tensors are per-tensor uniform quantized (i8->f32) or
    //     per-channel uniform quantized (i32->f32) tensors.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

        llvm::function_ref<APFloat(APFloat, APFloat)> float_calculate,
        llvm::function_ref<APInt(APInt, APInt)> int_calculate) {
      // Note: All types are wrapped in tensor types in TFlite. E.g., f32 is
      // represented as tensor<f32>. So we are only handling tensor types here.
      auto type = result_type.dyn_cast<ShapedType>();
      if (!type) return {};
    
      auto elemType = type.getElementType();
    
      if (elemType.isa<FloatType>())
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/optimize.cc

          // TODO(b/180752069): Figure out new bias' type when old bias is empty.
          return failure();
        }
    
        // The FC relies on constant folding, which is implemented on F32. Checks
        // types to be F32.
        {
          if (!IsF32Value(add_op.getRhs()) || !IsF32Value(fc_op.getFilter()) ||
              !IsF32Value(old_bias))
            return failure();
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top