- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 36 for TypeParam (0.28 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
src/go/types/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 Apr 03 18:48:38 UTC 2024 - 9.2K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/renderers/KtTypeParametersRenderer.kt
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 6.3K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/service/TypeStringFormatter.java
for (int i = 0; i < parameterizedType.getActualTypeArguments().length; i++) { Type typeParam = parameterizedType.getActualTypeArguments()[i]; if (i > 0) { builder.append(", "); } builder.append(format(typeParam)); } builder.append(">"); return builder.toString(); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 1.8K bytes - Viewed (0) -
src/go/types/context_test.go
tparam := NewTypeParam(NewTypeName(nopos, nil, "P", nil), &emptyInterface) nullaryP = NewSignatureType(nil, nil, []*TypeParam{tparam}, nil, nil, false) } { // type nullaryQ = func[Q any]() tparam := NewTypeParam(NewTypeName(nopos, nil, "Q", nil), &emptyInterface) nullaryQ = NewSignatureType(nil, nil, []*TypeParam{tparam}, nil, nil, false) } { // type unaryP = func[P any](_ P)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 2.4K bytes - Viewed (0)