Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 127 for Constraint (0.14 sec)

  1. 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)
  2. 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)
  3. src/cmd/compile/internal/types2/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(pos, "%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.4K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/documentation/docs/src/docs/userguide/dep-man/01-core-dependency-management/viewing_debugging_dependencies.adoc

    | By constraint
    | A <<dependency_constraints#sec:adding-constraints-transitive-deps, dependency constraint>> participated in the version selection.
    May be followed by a `because` text.
    
    | By ancestor
    | There is a <<rich_versions#rich-version-constraints, rich version>> with a `strictly` which enforces the version of this dependency.
    
    | Selected by rule
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:55:38 UTC 2024
    - 12K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/interfaces.go

    	// ResourceVersion provides a resource version constraint to apply to the list operation
    	// as a "not older than" constraint: the result contains data at least as new as the provided
    	// ResourceVersion. The newest available data is preferred, but any data not older than this
    	// ResourceVersion may be served.
    	ResourceVersion string
    	// ResourceVersionMatch provides the rule for how the resource version constraint applies. If set
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 07:53:48 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td

        "RankedTensorType::get({" # len # "}, $_builder.getIntegerType(32)), $0)";
    }
    
    // Constraint that Attr has values [1, X, Y, 1]
    def IsIntList1XY1 : AttrConstraint<CPred<"TFIntListIs1XY1($_self)">>;
    
    // Constraint that Attr has values [1, 1, X, Y]
    def IsIntList11XY : AttrConstraint<CPred<"TFIntListIs11XY($_self)">>;
    
    // Constraint that values in list attribute are all ones.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 28.5K bytes
    - Viewed (0)
Back to top