Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for Tpaddings (0.18 sec)

  1. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

        for padding `input`.
    
        The padded size of each dimension D of the output is:
    
          `paddings(D, 0) + input.dim_size(D) + paddings(D, 1)`
    
        For example:
    
        ```
        # 't' is [[1, 1], [2, 2]]
        # 'paddings' is [[1, 1], [2, 2]]
        # rank of 't' is 2
        pad(t, paddings) ==> [[0, 0, 0, 0, 0, 0]
                              [0, 0, 1, 1, 0, 0]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

        return failure();
    
      ElementsAttr padding;
      if (matchPattern(op.getPadding(), m_Constant(&padding))) {
        const ShapedType &padding_ty = cast<ShapedType>(padding.getType());
        if (padding_ty.getRank() != 2 || padding_ty.getDimSize(1) != 2) {
          return op.emitOpError()
                 << "expects padding to be a matrix with minor dimension 2, got "
                 << padding.getShapedType().getShape();
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

        SmallVector<int64_t> padded_shape(tensor_shape.begin(), tensor_shape.end());
        for (int i = 0; i < padded_shape.size(); ++i) {
          // Left padding + right padding.
          int32_t padding = tfl_pad_values[i * 2] + tfl_pad_values[i * 2 + 1];
          padded_shape[i] += padding;
        }
    
        return padded_shape;
      }
    
      std::pair<int64_t, int64_t> GetDimSize(
    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/stablehlo/transforms/legalize_hlo.cc

          // stablehlo.convolution op needs explicit padding to be set to model any
          // Transposed-Convolution in JAX/PT. Checking to see if-
          // 1. Pre set padding matches to the desired padding
          // 2. Output size respects the `VALID` padding scenario
          if ((padding[2 * i] == padding[2 * i + 1]) &&
              (((kernel_size - 1) != padding[2 * i]) ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

        return emitOptionalError(op.getLoc(), "Invalid data format provided");
      }
    
      const StringRef paddings = op.getPadding();
      tensorflow::Padding padding;
      auto padding_is_valid = GetPaddingFromString(paddings.str(), &padding);
      if (!padding_is_valid.ok()) {
        return emitOptionalError(op.getLoc(), "Invalid padding format provided");
      }
    
      // Verifies that,
      // * Ranks of operands and result are valid
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tests/ops.mlir

      // CHECK: "VALID"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 189.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

        if (!window_strides.empty()) {
          dim->set_stride(window_strides[i]);
        } else {
          dim->set_stride(1);
        }
        if (!padding.empty()) {
          dim->set_padding_low(padding[i].first);
          dim->set_padding_high(padding[i].second);
        } else {
          dim->set_padding_low(0);
          dim->set_padding_high(0);
        }
        if (!lhs_dilation.empty()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/shape_inference.mlir

        %padding = "tf.Const"() {value = dense<0> : tensor<3x2xi32>} : () -> tensor<3x2xi32>
        %strides = "tf.Const"() {value = dense<[3, 1, 1]> : tensor<3xi32>} : () -> tensor<3xi32>
        // expected-error @below {{'tf.XlaConvV2' op feature_group_count must be a positive number, got -1}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 17:24:10 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/legalize-tf.mlir

      // OK
      %0 = "tf.AvgPool"(%arg0) {T = "tfdtype$DT_FLOAT", data_format = "NHWC", ksize = [1, 3, 6, 1], padding = "VALID", strides = [1, 3, 1, 1]} : (tensor<1x6x6x16xf32>) -> tensor<1x1x1x16xf32>
      // Unsupported ksize
      %1 = "tf.AvgPool"(%arg0) {T = "tfdtype$DT_FLOAT", data_format = "NHWC", ksize = [3, 3, 6, 1], padding = "VALID", strides = [1, 3, 1, 1]} : (tensor<1x6x6x16xf32>) -> tensor<1x1x1x16xf32>
      // Unsupported strides
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 05 01:54:33 UTC 2024
    - 153.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/tests/uniform-quantized-stablehlo-to-tfl.mlir

    // CHECK: stablehlo.convolution
    // CHECK-NOT: tfl.conv_2d
    
    // -----
    
    // Tests that if the window padding contains values of 0, tfl.pad op is not
    // created and the `padding` attribute is set as "VALID".
    
    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