- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 54 for sliceok3 (0.17 sec)
-
src/reflect/value.go
fl := v.flag.ro() | flagIndir | flag(Slice) return Value{typ.Common(), unsafe.Pointer(&x), fl} } // Slice3 is the 3-index form of the slice operation: it returns v[i:j:k]. // It panics if v's Kind is not [Array] or [Slice], or if v is an unaddressable array, // or if the indexes are out of bounds. func (v Value) Slice3(i, j, k int) Value { var ( cap int typ *sliceType base unsafe.Pointer )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:17:41 UTC 2024 - 119.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
// TODO(disc): To recover static special case's performance with folding and // canonicalization. class ConvertSliceOpDynamic : public OpRewritePattern<TF::SliceOp> { public: using OpRewritePattern::OpRewritePattern; LogicalResult matchAndRewrite(TF::SliceOp op, PatternRewriter &rewriter) const override { Location loc = op.getLoc(); Value input = op.getInput();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0) -
src/text/template/funcs.go
return item.Slice(idx[0], idx[1]), nil } // given item[i:j:k], make sure i <= j <= k. if idx[1] > idx[2] { return reflect.Value{}, fmt.Errorf("invalid slice index: %d > %d", idx[1], idx[2]) } return item.Slice3(idx[0], idx[1], idx[2]), nil } // Length // length returns the length of the item, with an error if it has no defined length. func length(item reflect.Value) (int, error) { item, isNil := indirect(item)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 20.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td
(replaceWithValue $input), [(CanOptimizeIdentitySliceOp $input, $begin, $size)]>; // Convert the StridedSliceOp to a SliceOp when possible. This will enable other // optimizations on SliceOp to run. def OptimizeStridedSlice : Pat< (TFL_StridedSliceOp $input, (Arith_ConstantOp $begin), (Arith_ConstantOp $end), (Arith_ConstantOp $stride),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 20:31:41 UTC 2024 - 66.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/converter.go
return err } dv.Set(reflect.ValueOf(result)) return nil } if dt.Kind() == reflect.Interface && dv.NumMethod() == 0 { dv.Set(reflect.MakeSlice(reflect.SliceOf(dt), sv.Len(), sv.Cap())) dv = dv.Elem() dt = dv.Type() } if dt.Kind() != reflect.Slice { return fmt.Errorf("cannot convert slice to: %v", dt.Kind()) } for i := 0; i < sv.Len(); i++ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 16:02:13 UTC 2023 - 24.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/lstm_utils.cc
// Create a dense constant op for slice's size auto slice_i2c_size = CreateI64DenseConst(builder, size_shape, size_values, location); return builder->create<TF::SliceOp>( location, RankedTensorType::get( size_values, mlir::cast<RankedTensorType>(input.getType()).getElementType()), input, slice_i2c_begin, slice_i2c_size); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 36.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
// - if begins aren't constant but the input is a ranked tensor, that // size[i] <= input_ty.getShape()[i] // - output rank is the same as input rank // LogicalResult SliceOp::verify() { SliceOp op = *this; RankedTensorType begin_ty = GetRankedTensorTypeForOperand(op.getBegin()); if (begin_ty && begin_ty.getRank() != 1) { return op.emitOpError() << "requires begin operand to be 1D tensor";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
src/go/parser/parser_test.go
{name: "dot", format: "package main; var x = «x.»x"}, {name: "index", format: "package main; var x = x«[1]»"}, {name: "slice", format: "package main; var x = x«[1:2]»"}, {name: "slice3", format: "package main; var x = x«[1:2:3]»"}, {name: "dottype", format: "package main; var x = x«.(any)»"}, {name: "callseq", format: "package main; var x = x«()»"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 20:26:14 UTC 2024 - 24.6K bytes - Viewed (0) -
src/go/ast/ast.go
Lbrack token.Pos // position of "[" Low Expr // begin of slice range; or nil High Expr // end of slice range; or nil Max Expr // maximum capacity of slice; or nil Slice3 bool // true if 3-index slice (2 colons present) Rbrack token.Pos // position of "]" } // A TypeAssertExpr node represents an expression followed by a // type assertion. // TypeAssertExpr struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 28 21:32:41 UTC 2024 - 35.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/lower_tf.mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jan 05 18:35:42 UTC 2024 - 92K bytes - Viewed (0)