Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,264 for float1 (0.12 sec)

  1. staging/src/k8s.io/apimachinery/pkg/conversion/queryparams/convert_test.go

    	"k8s.io/apimachinery/pkg/conversion/queryparams"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    )
    
    type namedString string
    type namedBool bool
    
    type bar struct {
    	Float1   float32 `json:"float1"`
    	Float2   float64 `json:"float2"`
    	Int1     int64   `json:"int1,omitempty"`
    	Int2     int32   `json:"int2,omitempty"`
    	Int3     int16   `json:"int3,omitempty"`
    	Str1     string  `json:"str1,omitempty"`
    	Ignored  int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 03 07:01:02 UTC 2018
    - 6.2K bytes
    - Viewed (0)
  2. test/codegen/floats.go

    	return x, y, z
    }
    
    func indexLoad(b0 []float32, b1 float32, idx int) float32 {
    	// arm64:`FMOVS\s\(R[0-9]+\)\(R[0-9]+<<2\),\sF[0-9]+`
    	return b0[idx] * b1
    }
    
    func indexStore(b0 []float64, b1 float64, idx int) {
    	// arm64:`FMOVD\sF[0-9]+,\s\(R[0-9]+\)\(R[0-9]+<<3\)`
    	b0[idx] = b1
    }
    
    // ----------- //
    //    Fused    //
    // ----------- //
    
    func FusedAdd32(x, y, z float32) float32 {
    	// s390x:"FMADDS\t"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 15:24:29 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. test/const.go

    	// Issue #34563
    	_ = string(int(123))
    	_ = string(rune(456))
    )
    
    const (
    	f0              = 0.0
    	fm1             = -1.
    	fhuge   float64 = 1 << 100
    	fhuge_1 float64 = chuge - 1
    	f1      float64 = chuge >> 100
    	f3div2          = 3. / 2.
    	f1e3    float64 = 1e3
    )
    
    func assert(t bool, s string) {
    	if !t {
    		panic(s)
    	}
    }
    
    func ints() {
    	assert(c0 == 0, "c0")
    	assert(c1 == 1, "c1")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 26 23:54:29 UTC 2019
    - 4.8K bytes
    - Viewed (0)
  4. src/runtime/float.go

    //
    // Special cases are:
    //
    //	abs(±Inf) = +Inf
    //	abs(NaN) = NaN
    func abs(x float64) float64 {
    	const sign = 1 << 63
    	return float64frombits(float64bits(x) &^ sign)
    }
    
    // copysign returns a value with the magnitude
    // of x and the sign of y.
    func copysign(x, y float64) float64 {
    	const sign = 1 << 63
    	return float64frombits(float64bits(x)&^sign | float64bits(y)&sign)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 02:39:39 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  5. src/internal/fuzz/encoding_test.go

    			//   * math.Float32bits(float32(math.NaN()))+1
    			in: `go test fuzz v1
    float32(-0)
    float64(-0)
    float32(+Inf)
    float32(-Inf)
    float32(NaN)
    float64(+Inf)
    float64(-Inf)
    float64(NaN)
    math.Float64frombits(0x7ff8000000000002)
    math.Float32frombits(0x7fc00001)`,
    		},
    		{
    			desc: "int variations",
    			// Although we arbitrarily choose default integer bases (0 or 16), we may
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 00:20:34 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. src/reflect/float32reg_riscv64.s

    #include "textflag.h"
    
    // riscv64 allows 32-bit floats to live in the bottom
    // part of the register, it expects them to be NaN-boxed.
    // These functions are needed to ensure correct conversions
    // on riscv64.
    
    // Convert float32->uint64
    TEXT ·archFloat32ToReg(SB),NOSPLIT,$0-16
    	MOVF	val+0(FP), F1
    	MOVD	F1, ret+8(FP)
    	RET
    
    // Convert uint64->float32
    TEXT ·archFloat32FromReg(SB),NOSPLIT,$0-12
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 04 13:38:32 UTC 2022
    - 794 bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. test/convinline.go

    	case "uintptr":
    		return fmt.Sprintf("%s(%#x)", t2, uintptr(v))
    	case "float32":
    		v := float32(v)
    		if math.IsInf(float64(v), -1) {
    			return "float32(math.Inf(-1))"
    		}
    		if math.IsInf(float64(v), +1) {
    			return "float32(math.Inf(+1))"
    		}
    		return fmt.Sprintf("%s(%v)", t2, float64(v))
    	case "float64":
    		return fmt.Sprintf("%s(%v)", t2, float64(v))
    	}
    	panic(t2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 17 13:46:05 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  10. pkg/test/util/structpath/instance.go

    		case reflect.Float32, reflect.Float64:
    			return i.equalsNumber(reflect.ValueOf(expected).Float(), path)
    		case reflect.Int, reflect.Int8, reflect.Int32, reflect.Int64:
    			return i.equalsNumber(float64(reflect.ValueOf(expected).Int()), path)
    		case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
    			return i.equalsNumber(float64(reflect.ValueOf(expected).Uint()), path)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 9.4K bytes
    - Viewed (0)
Back to top