- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 56 for IsInf (0.19 sec)
-
src/math/log.go
L6 = 1.531383769920937332e-01 /* 3FC39A09 D078C69F */ L7 = 1.479819860511658591e-01 /* 3FC2F112 DF3E5244 */ ) // special cases switch { case IsNaN(x) || IsInf(x, 1): return x case x < 0: return NaN() case x == 0: return Inf(-1) } // reduce f1, ki := Frexp(x) if f1 < Sqrt2/2 { f1 *= 2 ki-- } f := f1 - 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 3.9K bytes - Viewed (0) -
tensorflow/c/kernels/histogram_summary_op.cc
TF_SetStatus(status.get(), TF_INVALID_ARGUMENT, err.str().c_str()); TF_OpKernelContext_Failure(ctx, status.get()); return; } else if (Eigen::numext::isinf(double_val)) { std::ostringstream err; err << "Infinity in Histogram for: " << k->op_node_name; TF_SetStatus(status.get(), TF_INVALID_ARGUMENT, err.str().c_str());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 6.5K bytes - Viewed (0) -
src/go/constant/value.go
f := x.val // Don't try to convert infinities (will not terminate). if f.IsInf() { return f.String() } // Use exact fmt formatting if in float64 range (common case): // proceed if f doesn't underflow to 0 or overflow to inf. if x, _ := f.Float64(); f.Sign() == 0 == (x == 0) && !math.IsInf(x, 0) { s := fmt.Sprintf("%.6g", x) if !f.IsInt() && strings.IndexByte(s, '.') < 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 34K bytes - Viewed (0) -
src/math/j1.go
S04 = 5.04636257076217042715e-09 // 0x3E35AC88C97DFF2C S05 = 1.23542274426137913908e-11 // 0x3DAB2ACFCFB97ED8 ) // special cases switch { case IsNaN(x): return x case IsInf(x, 0) || x == 0: return 0 } sign := false if x < 0 { x = -x sign = true } if x >= 2 { s, c := Sincos(x) ss := -s - c cc := s - c
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 13.3K bytes - Viewed (0) -
src/math/sqrt.go
// may turn a direct call into a direct use of that instruction instead. func sqrt(x float64) float64 { // special cases switch { case x == 0 || IsNaN(x) || IsInf(x, 1): return x case x < 0: return NaN() } ix := Float64bits(x) // normalize x exp := int((ix >> shift) & mask) if exp == 0 { // subnormal x for ix&(1<<shift) == 0 { ix <<= 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 15 17:07:57 UTC 2022 - 4.8K bytes - Viewed (0) -
src/math/j0.go
S03 = 5.13546550207318111446e-07 // 0x3EA13B54CE84D5A9 S04 = 1.16614003333790000205e-09 // 0x3E1408BCF4745D8F ) // special cases switch { case IsNaN(x): return x case IsInf(x, 0): return 0 case x == 0: return 1 } x = Abs(x) if x >= 2 { s, c := Sincos(x) ss := s - c cc := s + c // make sure x+x does not overflow if x < MaxFloat64/2 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 13.6K bytes - Viewed (0) -
src/math/log1p.go
Lp7 = 1.479819860511658591e-01 // 3FC2F112DF3E5244 ) // special cases switch { case x < -1 || IsNaN(x): // includes -Inf return NaN() case x == -1: return Inf(-1) case IsInf(x, 1): return Inf(1) } absx := Abs(x) var f float64 var iu uint64 k := 1 if absx < Sqrt2M1 { // |x| < Sqrt(2)-1 if absx < Small { // |x| < 2**-29
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/jit/tests/opens2s_gnmt_mixed_precision.golden_summary
TensorArraySizeV3 4 TensorArrayV3 8 TensorArrayWriteV3 9 Unique 2 VariableV2 164 _Retval 5 cluster 0 size 440 Abs 40 AddN 1 Any 41 Cast 40 ConcatV2 2 Const 95 ExpandDims 2 IsInf 1 IsNan 40 L2Loss 40 LogicalOr 1 Max 41 Minimum 1 Mul 82 Pack 3 Reciprocal 2 Reshape 2 ReverseSequence 1 Sqrt 1 Sum 1 Transpose 3 cluster 1 size 86 BroadcastGradientArgs 1
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jan 06 10:38:14 UTC 2023 - 5K bytes - Viewed (0) -
src/math/big/rat.go
mantissa >>= 1 exp++ } } } mantissa >>= 1 // discard rounding bit. Mantissa now scaled by 1<<Msize1. f = float32(math.Ldexp(float64(mantissa), exp-Msize1)) if math.IsInf(float64(f), 0) { exact = false } return } // quotToFloat64 returns the non-negative float64 value // nearest to the quotient a/b, using round-to-even in
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 13.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/upload/reports.go
_, err := rand.Read(b) if err != nil { panic(fmt.Sprintf("rand.Read failed: %v", err)) } // and turn it into a float64 x := math.Float64frombits(binary.LittleEndian.Uint64(b)) if math.IsNaN(x) || math.IsInf(x, 0) { continue } x = math.Abs(x) if x < 0x1p-1000 { // avoid underflow patterns continue } frac, _ := math.Frexp(x) // 52 bits of randomness return frac*2 - 1 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 14:52:56 UTC 2024 - 10.3K bytes - Viewed (0)