Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 912 for float1 (0.14 sec)

  1. 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)
  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. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/internal/types/testdata/check/stmt0.go

    	case nil:
    		var v bool = t /* ERRORx `cannot use .* in variable declaration` */
    		_ = v
    	case int:
    		var v int = t
    		_ = v
    	case float32, complex64:
    		var v float32 = t /* ERRORx `cannot use .* in variable declaration` */
    		_ = v
    	default:
    		var v float32 = t /* ERRORx `cannot use .* in variable declaration` */
    		_ = v
    	}
    
    	var t I
    	switch t.(type) {
    	case T:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. src/slices/sort_benchmark_test.go

    		b.Run(fmt.Sprintf("Size%d", size), func(b *testing.B) {
    			floats := make([]float64, size)
    			for i := range floats {
    				floats[i] = float64(i)
    			}
    			midpoint := len(floats) / 2
    			needle := (floats[midpoint] + floats[midpoint+1]) / 2
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				slices.BinarySearch(floats, needle)
    			}
    		})
    	}
    }
    
    type myStruct struct {
    	a, b, c, d string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. 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)
Back to top