Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for TypeParam (0.26 sec)

  1. src/cmd/compile/internal/types2/typeparam.go

    func NewTypeParam(obj *TypeName, constraint Type) *TypeParam {
    	return (*Checker)(nil).newTypeParam(obj, constraint)
    }
    
    // check may be nil
    func (check *Checker) newTypeParam(obj *TypeName, constraint Type) *TypeParam {
    	// Always increment lastID, even if it is not used.
    	id := nextID()
    	if check != nil {
    		check.nextID++
    		id = check.nextID
    	}
    	typ := &TypeParam{check: check, id: id, obj: obj, index: -1, bound: 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)
  2. src/go/types/typeparam.go

    func NewTypeParam(obj *TypeName, constraint Type) *TypeParam {
    	return (*Checker)(nil).newTypeParam(obj, constraint)
    }
    
    // check may be nil
    func (check *Checker) newTypeParam(obj *TypeName, constraint Type) *TypeParam {
    	// Always increment lastID, even if it is not used.
    	id := nextID()
    	if check != nil {
    		check.nextID++
    		id = check.nextID
    	}
    	typ := &TypeParam{check: check, id: id, obj: obj, index: -1, bound: 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)
  3. src/cmd/cgo/internal/test/typeparam.go

    Austin Clements <******@****.***> 1683224724 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 353 bytes
    - Viewed (0)
  4. tensorflow/cc/experimental/base/tests/tensorhandle_test.cc

      Status status;
      RuntimeBuilder runtime_builder;
      std::unique_ptr<Runtime> runtime = runtime_builder.Build(&status);
      ASSERT_TRUE(status.ok()) << status.message();
    
      TF_DataType dtype = TypeParam::kDType;
      typename TypeParam::type value = 42;
      Tensor original_tensor =
          Tensor::FromBuffer(/*dtype=*/dtype, /*shape=*/{},
                             /*data=*/&value,
                             /*len=*/sizeof(value),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 09:56:08 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. tensorflow/cc/experimental/base/tests/tensor_test.cc

          /*data=*/value.data(),
          /*len=*/value.size() * sizeof(typename TypeParam::type),
          /*deleter=*/[](void*, size_t) {}, &status);
      ASSERT_TRUE(status.ok()) << status.message();
    
      EXPECT_EQ(tensor.dims(), 1);
      EXPECT_EQ(tensor.dtype(), dtype);
      absl::Span<const typename TypeParam::type> tensor_view(
          reinterpret_cast<typename TypeParam::type*>(tensor.data()), value.size());
      EXPECT_EQ(tensor_view[0], 42);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 09:56:08 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. src/sort/gen_sort_variants.go

    	// suffixes should be unique within a package.
    	FuncSuffix string
    
    	// DataType is the type of the data parameter of functions in this variant's
    	// code.
    	DataType string
    
    	// TypeParam is the optional type parameter for the function.
    	TypeParam string
    
    	// ExtraParam is an extra parameter to pass to the function. Should begin with
    	// ", " to separate from other params.
    	ExtraParam string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/typelists.go

    type TypeParamList struct{ tparams []*TypeParam }
    
    // Len returns the number of type parameters in the list.
    // It is safe to call on a nil receiver.
    func (l *TypeParamList) Len() int { return len(l.list()) }
    
    // At returns the i'th type parameter in the list.
    func (l *TypeParamList) At(i int) *TypeParam { return l.tparams[i] }
    
    // list is for internal use where we expect a []*TypeParam.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 28 22:21:55 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  8. src/go/types/typelists.go

    type TypeParamList struct{ tparams []*TypeParam }
    
    // Len returns the number of type parameters in the list.
    // It is safe to call on a nil receiver.
    func (l *TypeParamList) Len() int { return len(l.list()) }
    
    // At returns the i'th type parameter in the list.
    func (l *TypeParamList) At(i int) *TypeParam { return l.tparams[i] }
    
    // list is for internal use where we expect a []*TypeParam.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/mono.go

    type monoGraph struct {
    	vertices []monoVertex
    	edges    []monoEdge
    
    	// canon maps method receiver type parameters to their respective
    	// receiver type's type parameters.
    	canon map[*TypeParam]*TypeParam
    
    	// nameIdx maps a defined type or (canonical) type parameter to its
    	// vertex index.
    	nameIdx map[*TypeName]int
    }
    
    type monoVertex struct {
    	weight int // weight of heaviest known path to this vertex
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 00:05:29 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. 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)
Back to top