Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 511 for float2 (0.11 sec)

  1. src/math/big/float.go

    // than Float values, and each unique Float value requires
    // its own unique *Float pointer. To "copy" a Float value,
    // an existing (or newly allocated) Float must be set to
    // a new value using the [Float.Set] method; shallow copies
    // of Floats are not supported and may lead to errors.
    type Float struct {
    	prec uint32
    	mode RoundingMode
    	acc  Accuracy
    	form form
    	neg  bool
    	mant nat
    	exp  int32
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  2. src/reflect/abi.go

    }
    
    // floatFromReg loads a float value from its register representation in r.
    //
    // argSize must be 4 or 8.
    func floatFromReg(r *abi.RegArgs, reg int, argSize uintptr, to unsafe.Pointer) {
    	switch argSize {
    	case 4:
    		*(*float32)(to) = archFloat32FromReg(r.Floats[reg])
    	case 8:
    		*(*float64)(to) = *(*float64)(unsafe.Pointer(&r.Floats[reg]))
    	default:
    		panic("bad argSize")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:08:32 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize_weight.cc

          // For f16 quantization, quantize all constant ops as float16.
          QuantizeOpAsFloat16(rewriter, op, quant_op);
        }
        // TODO: b/264218457 - Return a value that accurately captures result
        // status.
        return true;
      }
    
      // Inserts ConvertOp which is used for converting float32 ConstantOp into
      // float16 quantization. If there is an existing ConvertOp connected to the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/ARM64Ops.go

    		{name: "FMOVSconst", argLength: 0, reg: fp01, aux: "Float64", asm: "FMOVS", typ: "Float32", rematerializeable: true}, // auxint as 64-bit float, convert to 32-bit float
    		{name: "FMOVDconst", argLength: 0, reg: fp01, aux: "Float64", asm: "FMOVD", typ: "Float64", rematerializeable: true}, // auxint as 64-bit float
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 58.8K bytes
    - Viewed (0)
  5. src/internal/fmtsort/sort.go

    		return cmp.Compare(aVal.Uint(), bVal.Uint())
    	case reflect.String:
    		return cmp.Compare(aVal.String(), bVal.String())
    	case reflect.Float32, reflect.Float64:
    		return cmp.Compare(aVal.Float(), bVal.Float())
    	case reflect.Complex64, reflect.Complex128:
    		a, b := aVal.Complex(), bVal.Complex()
    		if c := cmp.Compare(real(a), real(b)); c != 0 {
    			return c
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc

        }
        return false;
      }
    
      // Insert CastOp which is used to for converting float32 ConstantOp into
      // float16 quantization. If there is an existing CastOp connected to the
      // ConstantOp, the quantize_op will be rewired to the existing CastOp. This
      // guarantees at most one CastOp is created for float32 to float16 conversion.
      void quantizeOpAsFloat16(PatternRewriter& rewriter, arith::ConstantOp op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  7. src/database/sql/convert.go

    	case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
    		return strconv.FormatUint(rv.Uint(), 10)
    	case reflect.Float64:
    		return strconv.FormatFloat(rv.Float(), 'g', -1, 64)
    	case reflect.Float32:
    		return strconv.FormatFloat(rv.Float(), 'g', -1, 32)
    	case reflect.Bool:
    		return strconv.FormatBool(rv.Bool())
    	}
    	return fmt.Sprintf("%v", src)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  8. src/reflect/value.go

    }
    
    // CanFloat reports whether [Value.Float] can be used without panicking.
    func (v Value) CanFloat() bool {
    	switch v.kind() {
    	case Float32, Float64:
    		return true
    	default:
    		return false
    	}
    }
    
    // Float returns v's underlying value, as a float64.
    // It panics if v's Kind is not [Float32] or [Float64]
    func (v Value) Float() float64 {
    	k := v.kind()
    	switch k {
    	case Float32:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  9. src/math/big/float_test.go

    		opname        rune
    		op            func(z, x, y *Float) *Float
    	}{
    		{0, 0, 0, 0, '+', (*Float).Add},
    		{0, 1, 2, 3, '+', (*Float).Add},
    		{1, 2, 0, 2, '+', (*Float).Add},
    		{2, 0, 1, 1, '+', (*Float).Add},
    
    		{0, 0, 0, 0, '-', (*Float).Sub},
    		{0, 1, 2, -1, '-', (*Float).Sub},
    		{1, 2, 0, 2, '-', (*Float).Sub},
    		{2, 0, 1, -1, '-', (*Float).Sub},
    
    		{0, 0, 0, 0, '*', (*Float).Mul},
    		{0, 1, 2, 2, '*', (*Float).Mul},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  10. src/math/rand/v2/rand_test.go

    		ve float64 = 3.9496598225815571993e-3
    	)
    
    	testKe = make([]uint32, 256)
    	testWe = make([]float32, 256)
    	testFe = make([]float32, 256)
    
    	q := ve / math.Exp(-de)
    	testKe[0] = uint32((de / q) * m2)
    	testKe[1] = 0
    	testWe[0] = float32(q / m2)
    	testWe[255] = float32(de / m2)
    	testFe[0] = 1.0
    	testFe[255] = float32(math.Exp(-de))
    	for i := 254; i >= 1; i-- {
    		de = -math.Log(ve/de + math.Exp(-de))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top