Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 519 for ffloat32 (0.28 sec)

  1. test/fixedbugs/issue25322.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Missing zero extension when converting a float32
    // to a uint64.
    
    package main
    
    import (
    	"fmt"
    	"math"
    )
    
    func Foo(v float32) {
    	fmt.Printf("%x\n", uint64(math.Float32bits(v)))
    }
    
    func main() {
    	Foo(2.0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 31 17:36:45 UTC 2018
    - 378 bytes
    - Viewed (0)
  2. test/fixedbugs/bug389.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 2563
    package foo
    
    func fn(a float32) {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 22:28:39 UTC 2022
    - 368 bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/integration_test/custom_aggregator_op_test.py

        ops.disable_eager_execution()
    
      def testBypassAndMinMax(self):
        with self.session():
          input_tensor = array_ops.constant(
              [1.0, 2.0, 3.0, 4.0, 5.0], dtypes.float32
          )
    
          aggregator = custom_aggregator_op_wrapper.custom_aggregator(
              input_tensor,
              id='1',
              calibration_method=_CalibrationMethod.CALIBRATION_METHOD_MIN_MAX,
          )
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. test/abi/store_reg_args.go

    // be sure not to generate duplicated OpArgXXXReg values, which confuses
    // the register allocator.
    
    package main
    
    //go:noinline
    //go:registerparams
    func F(x, y float32) {
    	if x < 0 {
    		panic("FAIL")
    	}
    	g = [4]float32{x, y, x, y}
    }
    
    var g [4]float32
    
    func main() {
    	F(1, 2)
    	if g[0] != 1 || g[1] != 2 || g[2] != 1 || g[3] != 2 {
    		panic("FAIL")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 30 22:10:19 UTC 2021
    - 587 bytes
    - Viewed (0)
  5. test/fixedbugs/bug341.go

    // license that can be found in the LICENSE file.
    
    // Used to panic because 8g was generating incorrect
    // code for converting a negative float to a uint64.
    
    package main
    
    func main() {
    	var x float32 = -2.5
    
    	_ = uint64(x)
    	_ = float32(0)
    }
    /*
    panic: runtime error: floating point error
    
    [signal 0x8 code=0x6 addr=0x8048c64 pc=0x8048c64]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 459 bytes
    - Viewed (0)
  6. src/internal/types/testdata/check/typeparams.go

    var _ = reverse[int, float32 /* ERROR "got 2 type arguments" */ ] ([]int{1, 2, 3})
    var _ = reverse[int]([ /* ERROR "cannot use" */ ]float32{1, 2, 3})
    var f = reverse[chan int]
    var _ = f(0 /* ERRORx `cannot use 0 .* as \[\]chan int` */ )
    
    func swap[A, B any](a A, b B) (B, A) { return b, a }
    
    var _ = swap /* ERROR "multiple-value" */ [int, float32](1, 2)
    var f32, i = swap[int, float32](swap[float32, int](1, 2))
    var _ float32 = f32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:56:58 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  7. test/ken/convert.go

    		case tf32*100 + ti32:
    			f32 = float32(v); i32 = int32(f32); w = big(i32)
    		case tf32*100 + tu32:
    			f32 = float32(v); u32 = uint32(f32); w = big(u32)
    		case tf32*100 + ti64:
    			f32 = float32(v); i64 = int64(f32); w = big(i64)
    		case tf32*100 + tu64:
    			f32 = float32(v); u64 = uint64(f32); w = big(u64)
    		case tf32*100 + tf32:
    			f32 = float32(v); f32 = float32(f32); w = big(f32)
    		case tf32*100 + tf64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 14.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/aot/tests/make_test_graphs.py

    
    def tfgather(_):
      params = array_ops.placeholder(dtypes.float32, name='params')
      indices = array_ops.placeholder(dtypes.int32, name='indices')
      array_ops.gather(params, indices, name='gather_output')
    
    
    def tfmatmul(_):
      x = array_ops.placeholder(dtypes.float32, name='x_hold')
      y = array_ops.placeholder(dtypes.float32, name='y_hold')
      math_ops.matmul(x, y, name='x_y_prod')
    
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 15 15:25:23 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  9. test/ken/simparray.go

    // Test simple operations on arrays.
    
    package main
    
    var b[10] float32;
    
    func
    main() {
    	var a[10] float32;
    
    	for i:=int16(5); i<10; i=i+1 {
    		a[i] = float32(i);
    	}
    
    	s1 := float32(0);
    	for i:=5; i<10; i=i+1 {
    		s1 = s1 + a[i];
    	}
    
    	if s1 != 35 { panic(s1); }
    
    	for i:=int16(5); i<10; i=i+1 {
    		b[i] = float32(i);
    	}
    
    	s2 := float32(0);
    	for i:=5; i<10; i=i+1 {
    		s2 = s2 + b[i];
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 730 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