- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 52 for SLICE (4.77 sec)
-
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) -
doc/go1.17_spec.html
a slice of length up to that capacity can be created by <a href="#Slice_expressions"><i>slicing</i></a> a new one from the original slice. The capacity of a slice <code>a</code> can be discovered using the built-in function <a href="#Length_and_capacity"><code>cap(a)</code></a>. </p> <p> A new, initialized slice value for a given element type <code>T</code> is
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:22:45 UTC 2024 - 211.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/prepare-composite-functions-tf.mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 122.1K bytes - Viewed (0) -
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) -
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) -
src/internal/trace/traceviewer/static/webcomponents.min.js
return!0;return!1}function H(e){k(e,Ee)}function x(t,n,o,i){e.renderAllPending();var a=V(_e.call(q(n),o,i));if(!a)return null;var c=r(a,null),l=c.lastIndexOf(t);return l==-1?null:(c=c.slice(0,l),s(c,t))}function R(e){return function(){var t=te.get(this);return t&&t[e]&&t[e].value||null}}function I(e){var t=e.slice(2);return function(n){var r=te.get(this);r||(r=Object.create(null),te.set(this,r));var o=r[e];if(o&&this.removeEventListener(t,o.wrapped,!1),"function"==typeof n){var i=function(t){var...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 20:45:06 UTC 2023 - 115.6K bytes - Viewed (0) -
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) -
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) -
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) -
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)