- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 2,057 for float2 (0.12 sec)
-
tensorflow/c/experimental/saved_model/internal/saved_model_api_test.cc
TF_Tensor* result = TFE_TensorHandleResolve(compute_fn_outputs[0], status); EXPECT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status); EXPECT_EQ(TF_NumDims(result), 0); float output_value = *static_cast<float*>(TF_TensorData(result)); // (1 + 2) * (2 + 1) / 3 + 5 should be 8 EXPECT_FLOAT_EQ(output_value, 8.0); TF_DeleteTensor(result); TFE_DeleteTensorHandle(compute_fn_outputs[0]);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 23 08:08:45 UTC 2024 - 21.3K bytes - Viewed (0) -
src/math/rand/v2/race_test.go
wg.Add(numRoutines) for i := 0; i < numRoutines; i++ { go func(i int) { defer wg.Done() var seed int64 for j := 0; j < numCycles; j++ { seed += int64(ExpFloat64()) seed += int64(Float32()) seed += int64(Float64()) seed += int64(IntN(Int())) seed += int64(Int32N(Int32())) seed += int64(Int64N(Int64())) seed += int64(NormFloat64()) seed += int64(Uint32()) seed += int64(Uint64())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 30 14:31:46 UTC 2023 - 1005 bytes - Viewed (0) -
test/codegen/arithmetic.go
// 386:"MOVL\t[$]-252645135","IMULL",-"IDIVL" // arm64:`SMULH`,-`DIV` // arm:`MOVW`,`MUL`,-`.*udiv` b := n2 / 17 // signed return a, b } func FloatDivs(a []float32) float32 { // amd64:`DIVSS\s8\([A-Z]+\),\sX[0-9]+` // 386/sse2:`DIVSS\s8\([A-Z]+\),\sX[0-9]+` return a[1] / a[2] } func Pow2Mods(n1 uint, n2 int) (uint, int) { // 386:"ANDL\t[$]31",-"DIVL"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 15:28:00 UTC 2024 - 15.2K bytes - Viewed (0) -
src/reflect/tostring_test.go
case Int, Int8, Int16, Int32, Int64: return strconv.FormatInt(val.Int(), 10) case Uint, Uint8, Uint16, Uint32, Uint64, Uintptr: return strconv.FormatUint(val.Uint(), 10) case Float32, Float64: return strconv.FormatFloat(val.Float(), 'g', -1, 64) case Complex64, Complex128: c := val.Complex() return strconv.FormatFloat(real(c), 'g', -1, 64) + "+" + strconv.FormatFloat(imag(c), 'g', -1, 64) + "i" case String:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 26 14:24:17 UTC 2021 - 2.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/conc_alloc_test.go
// partition64 calls consume n times, passing ints [0,n) and floats that sum to x func partition64(rands *rand.Rand, n int, x float64, consume func(int, float64)) { if n <= 0 { return } divs := make([]float64, n-1) for idx := range divs { divs[idx] = float64(rands.Float64()) } sort.Float64s(divs) var last float64 for idx, div := range divs { div32 := float64(div) delta := div32 - last consume(idx, delta*x)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 07 18:17:27 UTC 2022 - 5.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/encode.go
// defined in RFC 8949 4.2.1 "Core Deterministic Encoding Requirements". Sort: cbor.SortBytewiseLexical, // CBOR supports distinct types for IEEE-754 float16, float32, and float64. Store // floats in the smallest width that preserves value so that equivalent float32 and // float64 values encode to identical bytes, as they do in a JSON // encoding. Satisfies one of the "Core Deterministic Encoding Requirements".
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 15 15:31:10 UTC 2024 - 3.6K bytes - Viewed (0) -
tensorflow/c/tf_datatype.h
TF_INT64 = 9, TF_BOOL = 10, TF_QINT8 = 11, // Quantized int8 TF_QUINT8 = 12, // Quantized uint8 TF_QINT32 = 13, // Quantized int32 TF_BFLOAT16 = 14, // Float32 truncated to 16 bits. TF_QINT16 = 15, // Quantized int16 TF_QUINT16 = 16, // Quantized uint16 TF_UINT16 = 17, TF_COMPLEX128 = 18, // Double-precision complex TF_HALF = 19, TF_RESOURCE = 20,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Sep 08 20:13:32 UTC 2023 - 2.5K bytes - Viewed (0) -
src/cmd/compile/internal/test/ssa_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 23:35:29 UTC 2023 - 4.9K bytes - Viewed (0) -
cmd/bucket-replication-metrics.go
Peak: peak, Curr: curr, measure: rx.measure, N: rx.N + o.N, } } func calcAvg(x, y float64, n1, n2 int64) float64 { if n1+n2 == 0 { return 0 } avg := (x*float64(n1) + y*float64(n2)) / float64(n1+n2) return avg } // Add a new transfer func (rx *XferStats) addSize(sz int64, t time.Duration) { if rx.measure == nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Feb 06 06:00:45 UTC 2024 - 14.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/basic.go
const ( Invalid BasicKind = iota // type is invalid // predeclared types Bool Int Int8 Int16 Int32 Int64 Uint Uint8 Uint16 Uint32 Uint64 Uintptr Float32 Float64 Complex64 Complex128 String UnsafePointer // types for untyped values UntypedBool UntypedInt UntypedRune UntypedFloat UntypedComplex UntypedString UntypedNil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 01 22:17:50 UTC 2021 - 1.5K bytes - Viewed (0)