Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for contracting_dimensions (0.27 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/dot_general.cc

                        ArrayRef<int64_t> contracting_dimensions) {
        const int64_t rank = type.getRank();
        for (const int64_t dim : batch_dimensions) {
          batch_dimensions_.axes.push_back(dim);
          batch_dimensions_.sizes.push_back(type.getDimSize(dim));
        }
    
        for (const int64_t dim : contracting_dimensions) {
          contracting_dimensions_.axes.push_back(dim);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/dot_general.h

    // -> tfl.batch_matmul(mhlo.transpose(mhlo.reshape(operand)), ...).
    // Note:
    // 1) Reshape/transpose are inserted because tfl.BatchMatMul requires
    // size(contracting_dimensions) = 1 and size(output_dim) = 1, whereas
    // mhlo.dot_general has no such restriction.
    // 2) Inserted mhlo.reshape/transpose will be legalized to tf.reshape/transpose
    // in LegalizeHloToTf (then from tf to tfl later).
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 04 19:00:01 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

                        ArrayRef<int64_t> contracting_dimensions) {
        const int64_t rank = type.getRank();
        for (const int64_t dim : batch_dimensions) {
          batch_dimensions_.axes.push_back(dim);
          batch_dimensions_.sizes.push_back(type.getDimSize(dim));
        }
    
        for (const int64_t dim : contracting_dimensions) {
          contracting_dimensions_.axes.push_back(dim);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

    //   * filter: per-channel qi8
    //   * output: per-tensor qi8
    //
    // Conditions for the `tfl.batch_matmul` conversion:
    //   * size(batching_dimensions) <= 3 (TFLite support restriction)
    //   * size(contracting_dimensions) = 1
    //   * 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
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/tests/uniform-quantized-stablehlo-to-tfl.mlir

      return %1 : tensor<1x2x3x5x!quant.uniform<i8:f32, 4.000000e+0>>
    }
    // Only support size(contracting_dimensions) == 1
    // CHECK-LABEL: dot_general_upstream_srq_too_many_contractions
    // CHECK: stablehlo.dot_general
    // CHECK-NOT: tfl.batch_matmul
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 17:10:32 UTC 2024
    - 106.2K bytes
    - Viewed (0)
Back to top