Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for stride1 (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

          return op.emitOpError() << "requires begin, end and strides to have the "
                                     "same number of elements";
        }
      }
    
      // If strides are constants, verify that none of the element is zero.
      DenseIntElementsAttr strides;
      if (matchPattern(op.getStrides(), m_Constant(&strides))) {
        if (llvm::is_contained(strides.getValues<APInt>(), 0))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

            rewriter.create<arith::ConstantOp>(op.getLoc(), slice_size_attr);
    
        ArrayRef<int64_t> strides = op.getStrides();
        // If stride of every dimension is 1, create tfl.slice and return early.
        // Otherwise, create tfl.strided_slice instead.
        if (llvm::all_of(strides, [](int64_t stride) { return stride == 1; })) {
          rewriter.replaceOpWithNewOp<TFL::SliceOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

          return failure();
        }
    
        // Constructs strides array.
        // For example, [2, 3] -> [1, 2, 3, 1].
        SmallVector<int64_t, num_spatial_dims + 2> strides({1});
        for (const auto v :
             conv_op.getWindowStrides().value().getValues<int64_t>()) {
          strides.emplace_back(v);
        }
        strides.emplace_back(1);
    
        // Constructs dilation array.
    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/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)
  5. tensorflow/compiler/mlir/lite/stablehlo/tests/uniform-quantized-stablehlo-to-tfl.mlir

    // Tests that the stride_w is set to 2.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 17:10:32 UTC 2024
    - 106.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tests/legalize-tf.mlir

      // CHECK: %[[ARG3:.*]] = "tfl.transpose_conv"(%arg0, %[[ARG0]], %arg2, %[[CST_0]]) <{fused_activation_function = "NONE", padding = "VALID", stride_h = 2 : i32, stride_w = 2 : i32}> : (tensor<4xi32>, tensor<1x3x3x32xf32>, tensor<15x14x14x32xf32>, none) -> tensor<15x28x28x1xf32>...
    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/tests/tf-ops.mlir

      func.return %0 : tensor<256x30x30x16xf32>
    }
    
    // -----
    
    func.func @testConv2D(%arg0: tensor<256x32x32x3xf32>, %arg1: tensor<3x3x3x16xf32>) -> tensor<256x30x30x16xf32> {
      // expected-error @+1 {{requires positive strides}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K 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/tensorflow/ir/tf_ops_a_m.cc

    static LogicalResult VerifyConvOpAttributes(
        int num_dims, ArrayRef<Attribute> strides, ArrayRef<Attribute> dilations,
        std::optional<mlir::Location> location) {
      int64_t strides_size = strides.size();
      if (strides_size != num_dims)
        return emitOptionalError(
            location, "requires strides attribute length to be ", num_dims);
      auto is_not_positive = [](Attribute val) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

        I32Attr:$dilation_d_factor,
        I32Attr:$dilation_h_factor,
        I32Attr:$dilation_w_factor,
        TFL_AFAttr:$fused_activation_function,
        TFL_PaddingAttr:$padding,
        I32Attr:$stride_d,
        I32Attr:$stride_h,
        I32Attr:$stride_w
      );
    
      let results = (outs TFL_TensorOf<[F32]>:$output);
    
      let hasOptions = 1;
    
      let customOption = "Conv3DOptions";
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
Back to top