- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 89 for TypeParam (0.12 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/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) -
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/internal/gcimporter/iimport.go
// typeparams being used in the method sig/body). targs := baseType(recv.Type()).TypeArgs() var rparams []*types.TypeParam if targs.Len() > 0 { rparams = make([]*types.TypeParam, targs.Len()) for i := range rparams { rparams[i], _ = targs.At(i).(*types.TypeParam) } } msig := r.signature(recv, rparams, nil) named.AddMethod(types.NewFunc(mpos, r.currPkg, mname, msig))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/infer.go
var maxUntyped map[*TypeParam]Type // lazily allocated (we may not need it) for _, index := range untyped { tpar := params.At(index).typ.(*TypeParam) // is type parameter (no alias) by construction of untyped if u.at(tpar) == nil { arg := args[index] // arg corresponding to tpar if maxUntyped == nil { maxUntyped = make(map[*TypeParam]Type) } max := maxUntyped[tpar]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 13:54:20 UTC 2024 - 26.4K 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)