- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 95 for variadicOk (0.17 sec)
-
src/reflect/type.go
// // The variadic argument controls whether the function is variadic. FuncOf // panics if the in[len(in)-1] does not represent a slice and variadic is // true. func FuncOf(in, out []Type, variadic bool) Type { if variadic && (len(in) == 0 || in[len(in)-1].Kind() != Slice) { panic("reflect.FuncOf: last arg of variadic func must be slice") } // Make a func type.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0) -
src/text/template/exec.go
// Validate against the type of the actual parameter. t = typ.In(numIn - 1) } else { // The added final argument corresponds to the variadic part. // Validate against the type of the elements of the variadic slice. t = t.Elem() } } argv[i] = s.validateType(final, t) } // Special case for the "call" builtin.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 21:22:24 UTC 2024 - 32K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/duplicate_shape_determining_constants.cc
CompileTimeConstantOperand<TF::CollectivePermuteOp, 1>, // $group_size, $group_key CompileTimeConstantOperand<TF::CollectiveReduceV2Op, 1, 2>, CompileTimeConstantOperand<TF::ConcatV2Op, -1>, // (variadic) $axis // $filter_sizes CompileTimeConstantOperand<TF::Conv2DBackpropFilterOp, 1>, CompileTimeConstantOperand<TF::Conv2DBackpropInputOp, 0>, // $input_sizes // $filter_sizes
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 17.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/dot_general.cc
Append(values, ranges...); } // Returns the number of elements in `range`. template <typename Range> size_t Size(Range&& range) { return range.size(); } // Returns the total number of elements in a variadic number of `ranges`. template <typename Range, typename... RangeTs> size_t Size(Range&& range, RangeTs&&... ranges) { return range.size() + Size(std::forward<RangeTs>(ranges)...); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go
return nil } params = append(params, &ast.Field{ Type: p, Names: []*ast.Ident{ { Name: t.Params().At(i).Name(), }, }, }) } if t.Variadic() { last := params[len(params)-1] last.Type = &ast.Ellipsis{Elt: last.Type.(*ast.ArrayType).Elt} } var returns []*ast.Field for i := 0; i < t.Results().Len(); i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 11.7K bytes - Viewed (0) -
src/go/internal/gccgoimporter/parser.go
var list []*types.Var isVariadic := false p.expect('(') for p.tok != ')' && p.tok != scanner.EOF { if len(list) > 0 { p.expect(',') } par, variadic := p.parseParam(pkg) list = append(list, par) if variadic { if isVariadic { p.error("... not on final argument") } isVariadic = true } } p.expect(')') return types.NewTuple(list...), isVariadic }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 02 23:14:07 UTC 2024 - 31.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go
// not valid. // // Example: // var _ = map[int][...]int{0: {}} BadDotDotDotSyntax // NonVariadicDotDotDot occurs when a "..." is used on the final argument to // a non-variadic function. // // Example: // func printArgs(s []string) { // for _, a := range s { // println(a) // } // } // // func f() { // s := []string{"a", "b", "c"}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 34K bytes - Viewed (0) -
src/internal/types/errors/codes.go
// not valid. // // Example: // var _ = map[int][...]int{0: {}} BadDotDotDotSyntax // NonVariadicDotDotDot occurs when a "..." is used on the final argument to // a non-variadic function. // // Example: // func printArgs(s []string) { // for _, a := range s { // println(a) // } // } // // func f() { // s := []string{"a", "b", "c"}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 22:50:48 UTC 2024 - 33.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
rewriter.replaceOp(transpose_second, resize.getResult()); return success(); } }; // Fuse Add with proceeding FullyConnected. // TODO(b/136285429): Move to tablegen when variadic is supported struct FuseFullyConnectedAndAdd : public OpRewritePattern<TFL::AddOp> { using OpRewritePattern<TFL::AddOp>::OpRewritePattern; LogicalResult matchAndRewrite(TFL::AddOp add_op,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc
UnrankedTensorType result_type = UnrankedTensorType::get(result_elt_type); return rewriter.create<TF::CastOp>(loc, result_type, cast_op.getArg()); } return cast_op.getArg(); } // For variadic operands, we have to enforce them to use the same types. // TODO(fengliuai): This method is required when the operand types are not set // by the frontend correctly.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.8K bytes - Viewed (0)