Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for GetConstraint (0.38 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. tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.h

      void Walk(llvm::function_ref<void(Value, ValueConstraint)> walk) const;
    
      // Returns the constraint of the value if it exists, or None otherwise.
      std::optional<ValueConstraint> GetConstraint(Value value) const;
      bool HasConstraint(Value value) const;
    
      // Merges all constrains from the other constraints set into this one.
      void MergeAll(const ValuesConstraintSet& other);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:47:00 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  3. 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)
  4. api/go1.18.txt

    pkg go/types, method (*TypeList) Len() int
    pkg go/types, method (*TypeParam) Constraint() Type
    pkg go/types, method (*TypeParam) Index() int
    pkg go/types, method (*TypeParam) Obj() *TypeName
    pkg go/types, method (*TypeParam) SetConstraint(Type)
    pkg go/types, method (*TypeParam) String() string
    pkg go/types, method (*TypeParam) Underlying() Type
    pkg go/types, method (*TypeParamList) At(int) *TypeParam
    pkg go/types, method (*TypeParamList) Len() int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 13K bytes
    - Viewed (0)
  5. 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