Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for SLICE (0.21 sec)

  1. src/reflect/value.go

    		panic(&ValueError{"reflect.Value.Slice", v.kind()})
    
    	case Array:
    		if v.flag&flagAddr == 0 {
    			panic("reflect.Value.Slice: slice of unaddressable array")
    		}
    		tt := (*arrayType)(unsafe.Pointer(v.typ()))
    		cap = int(tt.Len)
    		typ = (*sliceType)(unsafe.Pointer(tt.Slice))
    		base = v.ptr
    
    	case Slice:
    		typ = (*sliceType)(unsafe.Pointer(v.typ()))
    		s := (*unsafeheader.Slice)(v.ptr)
    		base = s.Data
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tests/prepare-composite-functions-tf.mlir

    // CHECK:           [[VAL_13:%.*]] = "tf.Slice"([[VAL_7]], [[VAL_11]], [[VAL_12]]) : (tensor<4x3xf32>, tensor<2xi64>, tensor<2xi64>) -> tensor<1x0xf32>
    // CHECK-DAG:       [[VAL_14:%.*]] = arith.constant dense<[1, 0]> : tensor<2xi64>
    // CHECK-DAG:       [[VAL_15:%.*]] = arith.constant dense<[1, 0]> : tensor<2xi64>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 122.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/tests/uniform-quantized-stablehlo-to-tfl.mlir

    // CHECK-NOT: tfl.padv2
    // CHECK: stablehlo.pad
    
    // -----
    
    // Tests that a quantized `stablehlo.slice` is converted to
    // `tfl.slice` when stride is 1.
    
    func.func @slice(
        %arg0: tensor<3x4x!quant.uniform<i8:f32, 2.000000e+00:-1>>
      ) -> tensor<2x2x!quant.uniform<i8:f32, 2.000000e+00:-1>> {
      %0 = "stablehlo.slice"(%arg0) {
        start_indices = array<i64: 1, 2>,
        limit_indices = array<i64: 3, 4>,
    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. src/reflect/all_test.go

    	}
    	if cap(v) != 6 {
    		t.Errorf("cap(xa.Slice(2, 5)) = %d", cap(v))
    	}
    	if !DeepEqual(v[0:6], xa[2:]) {
    		t.Errorf("xs.Slice(2, 5)[0:6] = %v", v[0:6])
    	}
    	s := "0123456789"
    	vs := ValueOf(s).Slice(3, 5).Interface().(string)
    	if vs != s[3:5] {
    		t.Errorf("s.Slice(3, 5) = %q; expected %q", vs, s[3:5])
    	}
    
    	rv := ValueOf(&xs).Elem()
    	rv = rv.Slice(3, 4)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

      }
    
      // Convert gather op to tf.slice and tf.concat
      LogicalResult ConvertGatherOpToSlice(
          mhlo::GatherOp gather_op, ConversionPatternRewriter& rewriter) const {
        Value operand = gather_op.getOperand();
        Value start_indices = gather_op.getStartIndices();
        static const int rank_two = 2;
        // This converts a gather op to multiple slice ops, cap the number of slice
        // ops allowed.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

        return rewriter.create<TFL::DilateOp>(dilate.getLoc(), dilated_output_type,
                                              input, dilate, constant_values);
      }
    };
    
    // Rewrites quantized stablehlo.slice to tfl.slice or tfl.strided_slice.
    class RewriteQuantizedSliceOp : public OpRewritePattern<stablehlo::SliceOp> {
     public:
      using OpRewritePattern<stablehlo::SliceOp>::OpRewritePattern;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      if (getAxis() != 0) return {};
    
      // First packed value is defined by a strided slice operation.
      auto slice_op =
          dyn_cast_or_null<StridedSliceOp>(getValues()[0].getDefiningOp());
      if (!slice_op) return {};
    
      // Input to the slice op is defined by shape operation.
      auto shape_op =
          dyn_cast_or_null<ShapeOp>(slice_op.getInput().getDefiningOp());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

    slice `i`, reverses the first `seq_lengths[i]` elements along
    the dimension `seq_dim`.
    
    The elements of `seq_lengths` must obey `seq_lengths[i] <= input.dims[seq_dim]`,
    and `seq_lengths` must be a vector of length `input.dims[batch_dim]`.
    
    The output slice `i` along dimension `batch_dim` is then given by input
    slice `i`, with the first `seq_lengths[i]` slices along dimension
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  9. src/database/sql/sql.go

    	// If zero, the driver or database's default level is used.
    	Isolation IsolationLevel
    	ReadOnly  bool
    }
    
    // RawBytes is a byte slice that holds a reference to memory owned by
    // the database itself. After a [Rows.Scan] into a RawBytes, the slice is only
    // valid until the next call to [Rows.Next], [Rows.Scan], or [Rows.Close].
    type RawBytes []byte
    
    // NullString represents a string that may be null.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/optimize.cc

        return success();
      }
    };
    
    // Reduce the K of a TopKV2Op for the following case.
    //
    // values, indices = tfl.topkv2(%inputs, K)
    // %1 = tfl.slice(values, 0, k)
    // %2 = tfl.slice(indices,0, k)
    // .... (values and indices only used for %1 and %2)
    //
    // %1 or %2 can be absent. If values and indices are only used here,
    // this pattern can be replaced with (conceptually)
    //
    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