- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for GetConstraint (0.46 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.cc
} std::optional<ValueConstraint> ValuesConstraintSet::GetConstraint( Value value) const { auto it = constraints_.find(value); if (it == constraints_.end()) return std::nullopt; return it->getSecond(); } bool ValuesConstraintSet::HasConstraint(Value value) const { return GetConstraint(value).has_value(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 27.9K bytes - Viewed (0) -
src/go/types/typeparam.go
return t.bound } // SetConstraint sets the type constraint for t. // // It must be called by users of NewTypeParam after the bound's underlying is // fully defined, and before using the type parameter in any way other than to // form other types. Once SetConstraint returns the receiver, t is safe for // concurrent use. func (t *TypeParam) SetConstraint(bound Type) { if bound == nil { panic("nil constraint")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 5.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typeparam.go
return t.bound } // SetConstraint sets the type constraint for t. // // It must be called by users of NewTypeParam after the bound's underlying is // fully defined, and before using the type parameter in any way other than to // form other types. Once SetConstraint returns the receiver, t is safe for // concurrent use. func (t *TypeParam) SetConstraint(bound Type) { if bound == nil { panic("nil constraint")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 4.9K bytes - Viewed (0) -
src/go/internal/gcimporter/iimport.go
for _, name := range names { p.doDecl(localpkg, name) } // SetConstraint can't be called if the constraint type is not yet complete. // When type params are created in the 'P' case of (*importReader).obj(), // the associated constraint type may not be complete due to recursion. // Therefore, we defer calling SetConstraint there, and call it here instead // after all types are complete. for _, d := range p.later {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.2K bytes - Viewed (0) -
src/go/internal/gcimporter/ureader.go
// we need to have multiple passes? See comments on CL 386002 and // go.dev/issue/52104. tparams := r.dict.tparams r.p.later(func() { for i, typ := range typs { tparams[i].SetConstraint(typ) } }) return r.dict.tparams } func (r *reader) method() *types.Func { r.Sync(pkgbits.SyncMethod) pos := r.pos() pkg, name := r.selector() rparams := r.typeParamNames()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 16.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"(*TypeName).String", Method, 5}, {"(*TypeName).Type", Method, 5}, {"(*TypeParam).Constraint", Method, 18}, {"(*TypeParam).Index", Method, 18}, {"(*TypeParam).Obj", Method, 18}, {"(*TypeParam).SetConstraint", Method, 18}, {"(*TypeParam).String", Method, 18}, {"(*TypeParam).Underlying", Method, 18}, {"(*TypeParamList).At", Method, 18}, {"(*TypeParamList).Len", Method, 18}, {"(*Union).Len", Method, 18},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)