- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 59 for variadicOk (0.17 sec)
-
src/go/types/builtins.go
if check.recordTypes() { sig := makeSig(S, S, y.typ) sig.variadic = true check.recordBuiltinType(call.Fun, sig) } x.mode = value x.typ = S break } } } // check general case by creating custom signature sig := makeSig(S, S, NewSlice(T)) // []T required for variadic signature sig.variadic = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 27.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/g3doc/tf_dialects.md
```mlir {.mlir} /// This is a regular function, taking inputs by value and returning a new value. /// The body is a regular CFG. func some_function(%input : tensor<*xf32>) -> tensor<*xf32> { // TensorFlow operations are not variadic: this `tf.add` operation always // takes two inputs and returns a single output. This simplifies // pattern-matching, verification and rewriting. %added = tf.Add %input, %input : tensor<*xf32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 13 16:33:28 UTC 2021 - 16K bytes - Viewed (0) -
src/cmd/compile/internal/types2/subst.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:04:07 UTC 2024 - 11K bytes - Viewed (0) -
src/cmd/compile/internal/types2/assignments.go
// typesSummary returns a string of the form "(t1, t2, ...)" where the // ti's are user-friendly string representations for the given types. // If variadic is set and the last type is a slice, its string is of // the form "...E" where E is the slice's element type. func (check *Checker) typesSummary(list []Type, variadic bool) string { var res []string for i, t := range list { var s string switch { case t == nil:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 23 21:21:43 UTC 2024 - 16.4K bytes - Viewed (0) -
src/go/types/subst.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:04:07 UTC 2024 - 11.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/predicates.go
return false } } yparams = check.subst(nopos, y.params, smap, nil, ctxt).(*Tuple) yresults = check.subst(nopos, y.results, smap, nil, ctxt).(*Tuple) } return x.variadic == y.variadic && c.identical(x.params, yparams, p) && c.identical(x.results, yresults, p) case *Union: if y, _ := y.(*Union); y != nil { // TODO(rfindley): can this be reached during type checking? If so,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 17.5K bytes - Viewed (0) -
src/go/types/predicates.go
return false } } yparams = check.subst(nopos, y.params, smap, nil, ctxt).(*Tuple) yresults = check.subst(nopos, y.results, smap, nil, ctxt).(*Tuple) } return x.variadic == y.variadic && c.identical(x.params, yparams, p) && c.identical(x.results, yresults, p) case *Union: if y, _ := y.(*Union); y != nil { // TODO(rfindley): can this be reached during type checking? If so,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 17.6K bytes - Viewed (0) -
src/internal/types/testdata/check/issues0.go
} func f0() (a []int) { return } func f1() (a []int, b int) { return } func f2() (a, b []int) { return } func append_([]int, ...int) {} func issue9473(a []int, b ...int) { // variadic builtin function _ = append(f0()) _ = append(f0(), f0()...) _ = append(f1()) _ = append(f2 /* ERRORx `cannot use .* in argument` */ ()) _ = append(f2()... /* ERROR "cannot use ..." */ )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 05 18:13:11 UTC 2024 - 11.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go
hash += h.Hash(f.Type()) } return hash case *types.Pointer: return 9067 + 2*h.Hash(t.Elem()) case *types.Signature: var hash uint32 = 9091 if t.Variadic() { hash *= 8863 } // Use a separate hasher for types inside of the signature, where type // parameter identity is modified to be (index, constraint). We must use a
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc
}; if (tf_op->hasTrait<mlir::OpTrait::AttrSizedOperandSegments>() || tf_op->hasTrait<mlir::OpTrait::AttrSizedResultSegments>()) { // The op has multiple variadic operands or results. // Calculate operand and result segment sizes using the OpDef. tensorflow::NameRangeMap input_ranges, output_ranges; // This will fail only if the OpDef is syntactically invalid.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.9K bytes - Viewed (0)