- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 140 for typeOff (0.2 sec)
-
pkg/apis/storage/v1beta1/defaults_test.go
return nil } obj2, err := runtime.Decode(codec, data) if err != nil { t.Errorf("%v\nData: %s\nSource: %#v", err, string(data), obj) return nil } obj3 := reflect.New(reflect.TypeOf(obj).Elem()).Interface().(runtime.Object) err = legacyscheme.Scheme.Convert(obj2, obj3, nil) if err != nil { t.Errorf("%v\nSource: %#v", err, obj2) return nil } return obj3 }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 6.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stringintconv/string.go
if T0 == nil { // No target types have an underlying type of string. return } // Next, find a type V0 in V that has an underlying integral type that is // not byte or rune. V := pass.TypesInfo.TypeOf(arg) vtypes, err := structuralTypes(V) if err != nil { return // invalid type } var V0 types.Type // integral type in the type set of V for _, vt := range vtypes {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.2K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental.cc
#include "tensorflow/core/lib/llvm_rtti/llvm_rtti.h" #include "tensorflow/core/platform/errors.h" #include "tensorflow/core/platform/types.h" using tensorflow::string; namespace tensorflow { namespace tracing { typedef absl::flat_hash_map<std::string, tracing::FactoryFunction> FactoriesMap; static FactoriesMap& GetFactories() { static FactoriesMap* factories = new FactoriesMap; return *factories; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 10:15:17 UTC 2024 - 9K bytes - Viewed (0) -
src/text/template/exec_test.go
// Ideal constants. {"ideal int", "{{typeOf 3}}", "int", 0, true}, {"ideal float", "{{typeOf 1.0}}", "float64", 0, true}, {"ideal exp float", "{{typeOf 1e1}}", "float64", 0, true}, {"ideal complex", "{{typeOf 1i}}", "complex128", 0, true}, {"ideal int", "{{typeOf " + bigInt + "}}", "int", 0, true}, {"ideal too big", "{{typeOf " + bigUint + "}}", "", 0, false},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 60.1K bytes - Viewed (0) -
src/unique/handle.go
// Make returns a globally unique handle for a value of type T. Handles // are equal if and only if the values used to produce them are equal. func Make[T comparable](value T) Handle[T] { // Find the map for type T. typ := abi.TypeOf(value) ma, ok := uniqueMaps.Load(typ) if !ok { // This is a good time to initialize cleanup, since we must go through // this path on the first use of Make, and it's not on the hot path. setupMake.Do(registerCleanup)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 16:01:55 UTC 2024 - 5.3K bytes - Viewed (0) -
src/unsafe/unsafe.go
// It is the same as the value returned by [reflect.TypeOf](x).Align(). // As a special case, if a variable s is of struct type and f is a field // within that struct, then Alignof(s.f) will return the required alignment // of a field of that type within a struct. This case is the same as the // value returned by [reflect.TypeOf](s.f).FieldAlign().
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 19:45:20 UTC 2024 - 12.1K bytes - Viewed (0) -
src/math/rand/v2/regress_test.go
var uint64s = []uint64{1, 10, 32, 1 << 20, 1<<20 + 1, 1000000000, 1 << 30, 1<<31 - 2, 1<<31 - 1, 1000000000000000000, 1 << 60, 1<<63 - 2, 1<<63 - 1, 1<<64 - 2, 1<<64 - 1} var permSizes = []int{0, 1, 5, 8, 9, 10, 16} n := reflect.TypeOf(New(NewPCG(1, 2))).NumMethod() p := 0 var buf bytes.Buffer if *update { fmt.Fprintf(&buf, "var regressGolden = []any{\n") } for i := 0; i < n; i++ { if *update && i > 0 { fmt.Fprintf(&buf, "\n")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:03:11 UTC 2024 - 20.3K bytes - Viewed (0) -
helm/minio/templates/statefulset.yaml
securityContext: readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem | default false }} {{- end }} {{- with .Values.extraContainers }} {{- if eq (typeOf .) "string" }} {{- tpl . $ | nindent 8 }} {{- else }} {{- toYaml . | nindent 8 }} {{- end }} {{- end }} {{- with .Values.nodeSelector }}
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 26 07:50:24 UTC 2024 - 10.7K bytes - Viewed (0) -
src/cmd/go/internal/base/base.go
// other kinds of structured errors that are logically one unit and that // add other context: only handling the wrapped errors would lose // that context. if err != nil && reflect.TypeOf(err).String() == "*errors.joinError" { for _, e := range err.(interface{ Unwrap() []error }).Unwrap() { Error(e) } return } Errorf("go: %v", err) } func Fatal(err error) { Error(err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 5.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api.go
} func (info *Info) recordTypes() bool { return info.Types != nil || info.StoreTypesInSyntax } // TypeOf returns the type of expression e, or nil if not found. // Precondition 1: the Types map is populated or StoreTypesInSyntax is set. // Precondition 2: Uses and Defs maps are populated. func (info *Info) TypeOf(e syntax.Expr) Type { if info.Types != nil { if t, ok := info.Types[e]; ok { return t.Type }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 13:48:53 UTC 2024 - 17.4K bytes - Viewed (0)