Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetConstraint (0.39 sec)

  1. 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)
  2. 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)
  3. 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)
Back to top