Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for GetConstraint (0.23 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/test_cluster_ops_by_policy.cc

        bool is_op_a = op->getName().getStringRef() == "test.OpA";
        bool is_op_b = op->getName().getStringRef() == "test.OpB";
        if (!is_op_a && !is_op_b) return failure();
    
        if (auto result_constraint = results.GetConstraint(op->getResult(0))) {
          // `test.OpA` converts shape constraint to rank constraint.
          if (is_op_a && *result_constraint == ValueConstraint::kShape)
            operands.Insert(op->getOperand(0), ValueConstraint::kRank);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:19:38 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
Back to top