Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for IsNaN (0.19 sec)

  1. 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)
  2. src/math/big/float.go

    }
    
    // NewFloat allocates and returns a new [Float] set to x,
    // with precision 53 and rounding mode [ToNearestEven].
    // NewFloat panics with [ErrNaN] if x is a NaN.
    func NewFloat(x float64) *Float {
    	if math.IsNaN(x) {
    		panic(ErrNaN{"NewFloat(NaN)"})
    	}
    	return new(Float).SetFloat64(x)
    }
    
    // Exponent and precision limits.
    const (
    	MaxExp  = math.MaxInt32  // largest supported exponent
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/rewrite.go

    // of the mantissa. It will panic if the truncation results in lost information.
    func truncate64Fto32F(f float64) float32 {
    	if !isExactFloat32(f) {
    		panic("truncate64Fto32F: truncation is not exact")
    	}
    	if !math.IsNaN(f) {
    		return float32(f)
    	}
    	// NaN bit patterns aren't necessarily preserved across conversion
    	// instructions so we need to do the conversion manually.
    	b := math.Float64bits(f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    (FMOVDstore [off] {sym} ptr (MTVSRD x) mem) => (MOVDstore [off] {sym} ptr x mem)
    (MOVDstore [off] {sym} ptr (MFVSRD x) mem) => (FMOVDstore [off] {sym} ptr x mem)
    
    (MTVSRD (MOVDconst [c])) && !math.IsNaN(math.Float64frombits(uint64(c))) => (FMOVDconst [math.Float64frombits(uint64(c))])
    (MFVSRD (FMOVDconst [c])) => (MOVDconst [int64(math.Float64bits(c))])
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewritePPC64.go

    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (MTVSRD (MOVDconst [c]))
    	// cond: !math.IsNaN(math.Float64frombits(uint64(c)))
    	// result: (FMOVDconst [math.Float64frombits(uint64(c))])
    	for {
    		if v_0.Op != OpPPC64MOVDconst {
    			break
    		}
    		c := auxIntToInt64(v_0.AuxInt)
    		if !(!math.IsNaN(math.Float64frombits(uint64(c)))) {
    			break
    		}
    		v.reset(OpPPC64FMOVDconst)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 360.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

      );
    
      TF_DerivedOperandTypeAttr T = TF_DerivedOperandTypeAttr<0>;
    }
    
    def TF_IsNanOp : TF_Op<"IsNan", [Pure, SameOperandsAndResultShape]> {
      let summary = "Returns which elements of x are NaN.";
    
      let description = [{
    @compatibility(numpy)
    Equivalent to np.isnan
    @end_compatibility
    
    Example:
    
    ```python
    x = tf.constant([5.0, np.nan, 6.8, np.nan, np.inf])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
  7. RELEASE.md

        *   Extend `tf.function` with basic support for CompositeTensors arguments
            (such as `SparseTensor` and `RaggedTensor`).
        *   `parallel_for.pfor`: add converters for Softmax, LogSoftmax, IsNaN, All,
            Any, and MatrixSetDiag.
        *   `parallel_for`: add converters for LowerTriangularSolve and Cholesky.
        *   `parallel_for`: add converters for `LogMatrixDeterminant` and
            `MatrixBandPart`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 730.3K bytes
    - Viewed (0)
Back to top