Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,211 for float1 (0.23 sec)

  1. guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThat(Floats.constrainToRange((float) 1, (float) 1, (float) 5)).isEqualTo((float) 1);
        assertThat(Floats.constrainToRange((float) 1, (float) 3, (float) 5)).isEqualTo((float) 3);
        assertThat(Floats.constrainToRange((float) 0, (float) -5, (float) -1)).isEqualTo((float) -1);
        assertThat(Floats.constrainToRange((float) 5, (float) 2, (float) 2)).isEqualTo((float) 2);
        try {
          Floats.constrainToRange((float) 1, (float) 3, (float) 2);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tests/quantize-dynamic-range-float16.mlir

    // RUN: tf-opt %s -tfl-prepare-quantize-dynamic-range="enable-float16-quantization" -tfl-quantize="enable-dynamic-range-quantization=true" | FileCheck --check-prefix=CHECK %s
    
    // CHECK-LABEL: QuantizeUnidirectionalLstm
    func.func @QuantizeUnidirectionalLstm(%arg0: tensor<1x2x3xf32>) -> (tensor<1x2x3xf32>) {
      %1 = "tfl.pseudo_const"() {value = dense<[[0.1]]> : tensor<1x1xf32>} : () -> tensor<1x1xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. 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)
  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/math/big/rat.go

    func (x *Rat) Float32() (f float32, exact bool) {
    	b := x.b.abs
    	if len(b) == 0 {
    		b = natOne
    	}
    	f, exact = quotToFloat32(x.a.abs, b)
    	if x.a.neg {
    		f = -f
    	}
    	return
    }
    
    // Float64 returns the nearest float64 value for x and a bool indicating
    // whether f represents x exactly. If the magnitude of x is too large to
    // be represented by a float64, f is an infinity and exact is false.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  6. src/math/rand/rand_test.go

    func initNorm() (testKn []uint32, testWn, testFn []float32) {
    	const m1 = 1 << 31
    	var (
    		dn float64 = rn
    		tn         = dn
    		vn float64 = 9.91256303526217e-3
    	)
    
    	testKn = make([]uint32, 128)
    	testWn = make([]float32, 128)
    	testFn = make([]float32, 128)
    
    	q := vn / math.Exp(-0.5*dn*dn)
    	testKn[0] = uint32((dn / q) * m1)
    	testKn[1] = 0
    	testWn[0] = float32(q / m1)
    	testWn[127] = float32(dn / m1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  7. 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)
  8. guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/FloatsMethodsForWeb.java

    import jsinterop.annotations.JsPackage;
    
    /** Web specializations for {@link Floats} methods. */
    public abstract class FloatsMethodsForWeb {
    
      @JsMethod(name = "Math.min", namespace = JsPackage.GLOBAL)
      public static native float min(float... array);
    
      @JsMethod(name = "Math.max", namespace = JsPackage.GLOBAL)
      public static native float max(float... array);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Oct 26 00:50:12 UTC 2023
    - 1K bytes
    - Viewed (0)
  9. src/database/sql/driver/types.go

    	case reflect.Uint64:
    		u64 := rv.Uint()
    		if u64 >= 1<<63 {
    			return nil, fmt.Errorf("uint64 values with high bit set are not supported")
    		}
    		return int64(u64), nil
    	case reflect.Float32, reflect.Float64:
    		return rv.Float(), nil
    	case reflect.Bool:
    		return rv.Bool(), nil
    	case reflect.Slice:
    		ek := rv.Type().Elem().Kind()
    		if ek == reflect.Uint8 {
    			return rv.Bytes(), nil
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 16:30:20 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  10. src/encoding/binary/binary.go

    	case reflect.Uint64:
    		e.uint64(v.Uint())
    
    	case reflect.Float32:
    		e.uint32(math.Float32bits(float32(v.Float())))
    	case reflect.Float64:
    		e.uint64(math.Float64bits(v.Float()))
    
    	case reflect.Complex64:
    		x := v.Complex()
    		e.uint32(math.Float32bits(float32(real(x))))
    		e.uint32(math.Float32bits(float32(imag(x))))
    	case reflect.Complex128:
    		x := v.Complex()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:29:31 UTC 2024
    - 23.4K bytes
    - Viewed (0)
Back to top