Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 278 for Constraint (0.15 sec)

  1. src/go/types/infer.go

    					var cause string
    					constraint := tpar.iface()
    					if m, _ := check.missingMethod(tx, constraint, true, func(x, y Type) bool { return u.unify(x, y, exact) }, &cause); m != nil {
    						// TODO(gri) better error message (see TODO above)
    						err.addf(posn, "%s (type %s) does not satisfy %s %s", tpar, tx, tpar.Constraint(), cause)
    						return nil
    					}
    				}
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  2. src/crypto/x509/verify_test.go

    		result, err := matchDomainConstraint(test.domain, test.constraint)
    
    		if err != nil && !test.expectError {
    			t.Errorf("unexpected error for test #%d: domain=%s, constraint=%s, err=%s", i, test.domain, test.constraint, err)
    			continue
    		}
    
    		if err == nil && test.expectError {
    			t.Errorf("unexpected success for test #%d: domain=%s, constraint=%s", i, test.domain, test.constraint)
    			continue
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 110.2K bytes
    - Viewed (0)
  3. src/go/types/typexpr.go

    				if tset.comparable {
    					check.softErrorf(e, MisplacedConstraintIface, "cannot use type %s outside a type constraint: interface is (or embeds) comparable", typ)
    				} else {
    					check.softErrorf(e, MisplacedConstraintIface, "cannot use type %s outside a type constraint: interface contains type constraints", typ)
    				}
    			}
    		}
    	}).describef(e, "check var type %s", typ)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/typexpr.go

    				if tset.comparable {
    					check.softErrorf(pos, MisplacedConstraintIface, "cannot use type %s outside a type constraint: interface is (or embeds) comparable", typ)
    				} else {
    					check.softErrorf(pos, MisplacedConstraintIface, "cannot use type %s outside a type constraint: interface contains type constraints", typ)
    				}
    			}
    		}
    	}).describef(e, "check var type %s", typ)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_lowering_patterns.td

                        (TFL_HardSwishOp $input)>;
    
    def IsNchwLayoutOp: Constraint<CPred<
      "$0.get(\"is_nchw_op\") && $0.get(\"is_nchw_op\").dyn_cast<BoolAttr>() "
          "== mlir::BoolAttr::get($_builder.getContext(), true)">>;
    
    def IsNhwcLayoutOp: Constraint<Neg<IsNchwLayoutOp.predicate>>;
    
    // TODO(b/343278954): Move the creation of transposes to a separate prepare pass
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. subprojects/diagnostics/src/integTest/groovy/org/gradle/api/tasks/diagnostics/DependencyInsightReportTaskIntegrationTest.groovy

    org:foo:1.0 FAILED
       Selection reasons:
          - By constraint: dependency was locked to version '1.0'
       Failures:
          - Could not resolve org:foo:{strictly 1.0}.
              - Cannot find a version of 'org:foo' that satisfies the version constraints:
                   Dependency path ':insight-test:unspecified' --> 'org:foo:1.+'
                   Constraint path ':insight-test:unspecified' --> 'org:foo:1.1'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 15:15:56 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag_old.go

    			if strings.HasPrefix(elem, "!!") {
    				return fmt.Errorf("invalid double negative in build constraint: %s", arg)
    			}
    			elem = strings.TrimPrefix(elem, "!")
    			for _, c := range elem {
    				if !unicode.IsLetter(c) && !unicode.IsDigit(c) && c != '_' && c != '.' {
    					return fmt.Errorf("invalid non-alphanumeric build constraint: %s", arg)
    				}
    			}
    		}
    	}
    	return nil
    }
    
    var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/api_predicates.go

    //
    // The behavior of AssertableTo is unspecified in three cases:
    //   - if T is Typ[Invalid]
    //   - if V is a generalized interface; i.e., an interface that may only be used
    //     as a type constraint in Go code
    //   - if T is an uninstantiated generic type
    func AssertableTo(V *Interface, T Type) bool {
    	// Checker.newAssertableTo suppresses errors for invalid types, so we need special
    	// handling here.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 16:36:08 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. src/go/types/api_predicates.go

    //
    // The behavior of AssertableTo is unspecified in three cases:
    //   - if T is Typ[Invalid]
    //   - if V is a generalized interface; i.e., an interface that may only be used
    //     as a type constraint in Go code
    //   - if T is an uninstantiated generic type
    func AssertableTo(V *Interface, T Type) bool {
    	// Checker.newAssertableTo suppresses errors for invalid types, so we need special
    	// handling here.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 16:36:08 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/quantization_context.h

    // The state for rescaling the propagated quantization parameters. This can be
    // on the input side to satisfy the constraint of previous operation, or on the
    // output side to satisfy the constraint of the next operation.
    struct RequantizeState {
      // Sometimes, we have to "requantize" the quantization result to satisfy all
      // the constraints. The "requantize" can happen either on the input or output
      // of the quantization result.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top