- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 1,080 for Constraint (0.23 sec)
-
src/go/types/instantiate.go
// is called through an exported API call such as AssignableTo. If constraint // is set, T is a type constraint. // // If the provided cause is non-nil, it may be set to an error string // explaining why V does not implement (or satisfy, for constraints) T. func (check *Checker) implements(pos token.Pos, V, T Type, constraint bool, cause *string) bool { Vu := under(V) Tu := under(T)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/instantiate.go
// is called through an exported API call such as AssignableTo. If constraint // is set, T is a type constraint. // // If the provided cause is non-nil, it may be set to an error string // explaining why V does not implement (or satisfy, for constraints) T. func (check *Checker) implements(pos syntax.Pos, V, T Type, constraint bool, cause *string) bool { Vu := under(V) Tu := under(T)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.7K bytes - Viewed (0) -
test/typeparam/stringer.go
import ( "fmt" "reflect" "strconv" ) // Simple constraint type Stringer interface { String() string } func stringify[T Stringer](s []T) (ret []string) { for _, v := range s { ret = append(ret, v.String()) } return ret } type myint int func (i myint) String() string { return strconv.Itoa(int(i)) } // Constraint with an embedded interface, but still only requires String()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.6K bytes - Viewed (0) -
subprojects/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/internal/graph/LegendRenderer.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 03 14:10:29 UTC 2022 - 2.3K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/platforms/EnforcedPlatformIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 4K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/versions/AbstractRichVersionConstraintsIntegrationTest.groovy
} } } run ':checkDeps' then: resolve.expectGraph { root(":", ":test:") { constraint("org:foo:{prefer 1.0.0}", "org:foo:1.1.0") constraint("org:foo:{prefer 1.1.0}", "org:foo:1.1.0") edge("org:foo:[1.0.0,2.0.0)", "org:foo:1.1.0") { notRequested() byConstraint()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jan 23 15:37:32 UTC 2024 - 30.9K bytes - Viewed (0) -
test/typeparam/issue51219.dir/a.go
package a // Type I is the first basic test for the issue, which relates to a type that is recursive // via a type constraint. (In this test, I -> IConstraint -> MyStruct -> I.) type JsonRaw []byte type MyStruct struct { x *I[JsonRaw] } type IConstraint interface { JsonRaw | MyStruct } type I[T IConstraint] struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 28 14:59:04 UTC 2022 - 487 bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_patterns.td
def OneElementAttr : ElementsAttrBase<And<[ElementsAttr.predicate, OneElementAttrPred]>, "Scalar ElementsAttr">; def HasRankedFirstOperand : Constraint<CPred<"(*$0.begin()).getType().isa<RankedTensorType>()">>; def IsShapedTensor : Constraint<CPred<"$0.getType().isa<RankedTensorType>()">>; // This pattern converts TensorFlow axis format to HLO axis format which
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 06 18:46:23 UTC 2024 - 34.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.td
include "tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td" // Only handles the case where precision config is default. def IsPrecisionEmpty : Constraint<CPred<"IsPrecisionEmpty($0)">>; // Creates Einsum Op from XlaDotV2 Op by generating equation. def CreateEinsumOpFromXlaDotV2Op : NativeCodeCall< "CreateEinsumOpFromXlaDotV2Op($_builder, $_loc, $0...)">;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Dec 10 05:52:02 UTC 2023 - 2.3K bytes - Viewed (0) -
src/internal/types/testdata/check/cycles5.go
type sourceBridge interface { listVersions() ([]Version, error) } type Constraint interface { copyTo(*ConstraintMsg) } type ConstraintMsg struct{} func (m *ConstraintMsg) asUnpairedVersion() UnpairedVersion { return nil } type Version interface { Constraint } type UnpairedVersion interface { Version } var _ Constraint = UnpairedVersion(nil) // derived test case from issue #21804
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 05 18:13:11 UTC 2024 - 3.2K bytes - Viewed (0)