Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 50 for AStride (0.24 sec)

  1. tensorflow/cc/framework/gradient_checker.cc

        (*jacobian)(row, col + 1) = JAC_T{value.imag()};
      }
    }
    
    // JacobianStride<T>::value holds the number of Jacobian elements needed to
    // represent one element of the given type.
    // When T is real the stride is 1, and when T is complex the stride is 2.
    template <typename T>
    struct JacobianStride {};  // Specializations below
    
    #define SET_JACOBIAN_STRIDE(TYPE, VALUE) \
      template <>                            \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/order_by_dialect.mlir

      %5 = "tf.ReadVariableOp"(%arg3) : (tensor<!tf_type.resource<tensor<3920x10xf32>>>) -> tensor<3920x10xf32>
      %6 = mhlo.convolution(%arg0, %4) dim_numbers = [b, 0, 1, f]x[0, 1, i, o]->[b, 0, 1, f], window = {stride = [1, 1], pad = [[1, 1], [1, 1]], rhs_dilate = [1, 1]} {batch_group_count = 1 : i64, feature_group_count = 1 : i64} : (tensor<32x28x28x1xf32>, tensor<3x3x1x5xf32>) -> tensor<32x28x28x5xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. 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>(
              op, output_type, op.getOperand(), start_idx, slice_size);
    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/tests/canonicalize.mlir

        "tfl.yield"(%test) : (tensor<i1>) -> ()
      },  {
      ^bb0(%arg2: tensor<i32>, %arg3: tensor<f32>):
        %cst = arith.constant dense<22.0> : tensor<f32>
        %stride = arith.constant dense<1> : tensor<i32>
        %inc = tfl.add %arg2, %stride {fused_activation_function = "NONE"} : tensor<i32>
        "tfl.yield"(%inc, %cst) : (tensor<i32>, tensor<f32>) -> ()
      }) : (tensor<i32>, tensor<f32>) -> (tensor<i32>, tensor<f32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/tests/uniform-quantized-stablehlo-to-tfl.mlir

      %0 = stablehlo.constant() {value = dense<3> : tensor<3x3x4x2xi8>} : () -> tensor<3x3x4x2x!quant.uniform<i8:f32:3, {2.000000e+2, 3.000000e+3}>>
      // The stride value is explicitly set to [1, 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. src/image/gif/reader_test.go

    				tc.nPix, tc.extraExisting, tc.extraSeparate, err, tc.wantErr)
    		}
    
    		if tc.wantErr != nil {
    			continue
    		}
    		want := &image.Paletted{
    			Pix:    []uint8{0, 0},
    			Stride: 2,
    			Rect:   image.Rect(0, 0, 2, 1),
    			Palette: color.Palette{
    				color.RGBA{0x10, 0x20, 0x30, 0xff},
    				color.RGBA{0x40, 0x50, 0x60, 0xff},
    			},
    		}
    		if !reflect.DeepEqual(got, want) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:15:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

          return failure();
        }
    
        DenseIntElementsAttr stride_dense_elem_attr;
        Value stride = strided_slice_op.getStrides();
        auto stride_ranked_attr_type =
            mlir::dyn_cast<RankedTensorType>(stride.getType());
        if (!stride_ranked_attr_type ||
            !matchPattern(stride, m_Constant(&stride_dense_elem_attr))) {
          return failure();
        }
    
        Value input = strided_slice_op.getInput();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-prefer-tf2xla.mlir

      // CHECK:       %[[v7:.*]] = mhlo.convolution(%[[v5]], %[[v6]])
      // CHECK-SAME{LITERAL}:  dim_numbers = [b, 0, 1, f]x[0, 1, i, o]->[b, 0, 1, f]
      // CHECK-SAME{LITERAL}:  window = {stride = [1, 1], pad = [[1, 1], [1, 1]], lhs_dilate = [1, 1], rhs_dilate = [1, 1], reverse = [0, 0]}
      // CHECK-SAME:  batch_group_count = 1
      // CHECK-SAME:  feature_group_count = 1
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf.mlir

      // Begin:        1,   4,   -3
      // End:          8,  65,   42
      // Stride:       1,   4,   -1
      // Begin mask:   0,   0,    1  (= 1)
      // End mask:     1,   0,    0  (= 4)
    
      // So result shape:
      // Dim #0: begin mask (1) -> begin = 0; end 8 canonicalized to 4: so 4
      // Dim #1: 4 to 65 stride 4: so 16
      // Dim #2: begin -3 + 1024 = 1021; end mask (1) -> end = -1: so 1022
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 335.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize.cc

      if (!first.getStrides().isSplat() ||
          first.getStrides().getSplatValue<IntegerAttr>().getInt() != 1 ||
          first.getStrides() != second.getStrides())
        return rewriter.notifyMatchFailure(concat, "slice ops must have stride=1");
      if (!first->hasOneUse() || !second->hasOneUse())
        return rewriter.notifyMatchFailure(concat, "slice ops are used elsewhere");
    
      SmallVector<int64_t> new_start;
      SmallVector<int64_t> new_limit;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 26.9K bytes
    - Viewed (0)
Back to top