Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,816 for const3 (0.19 sec)

  1. test/const3.go

    package main
    
    import "fmt"
    
    type T int
    
    func (t T) String() string { return fmt.Sprintf("T%d", int(t)) }
    
    const (
    	A T = 1 << (1 << iota)
    	B
    	C
    	D
    	E
    )
    
    func main() {
    	s := fmt.Sprintf("%v %v %v %v %v", A, B, C, D, E)
    	if s != "T2 T4 T16 T256 T65536" {
    		println("type info didn't propagate in const: got", s)
    		panic("fail")
    	}
    	x := uint(5)
    	y := float64(uint64(1)<<x)	// used to fail to compile
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 02:19:43 UTC 2012
    - 659 bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/convert_tensor.mlir

    // CHECK: name: "const2"
    // CHECK-NEXT: op: "Const"
    // CHECK: dtype: DT_HALF
    // CHECK: half_val: 15360
    // CHECK: half_val: 16384
    // CHECK: name: "const3"
    // CHECK-NEXT: op: "Const"
    // CHECK: dtype: DT_BFLOAT16
    // CHECK: half_val: 16964
    // CHECK: half_val: 17485
    // CHECK: name: "const4"
    // CHECK-NEXT: op: "Const"
    // CHECK: dtype: DT_BFLOAT16
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 25 12:28:56 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/mlir2graph/convert_tensor.mlir

    // CHECK: name: "const2"
    // CHECK-NEXT: op: "Const"
    // CHECK: dtype: DT_HALF
    // CHECK: half_val: 15360
    // CHECK-NEXT: half_val: 16384
        %2:2 = tf_executor.island wraps "tf.Const"() {device = "", dtype = bf16, value = dense<[4.900000e+01, 8.200000e+02]> : tensor<2xbf16>} : () -> tensor<bf16> loc("const3")
    // CHECK: name: "const3"
    // CHECK-NEXT: op: "Const"
    // CHECK: dtype: DT_BFLOAT16
    // CHECK: half_val: 16964
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 20 23:11:32 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/branchelim_test.go

    					Valu("sb", OpSB, c.config.Types.Uintptr, 0, nil),
    					Valu("const2", OpConst32, intType, 2, nil),
    					Valu("const3", OpConst32, intType, 3, nil),
    					Goto("b5")),
    				Bloc("b2",
    					Valu("addr", OpAddr, boolType.PtrTo(), 0, nil, "sb"),
    					Valu("cond", OpLoad, boolType, 0, nil, "addr", "start"),
    					Valu("phi", OpPhi, intType, 0, nil, "const2", "const3"),
    					If("cond", "b3", "b4")),
    				Bloc("b3",
    					Goto("b2")),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 24 15:51:15 UTC 2018
    - 5.2K bytes
    - Viewed (0)
  5. src/internal/chacha8rand/chacha8_generic.go

    // ChaCha8 is ChaCha with 8 rounds.
    // See https://cr.yp.to/chacha/chacha-20080128.pdf.
    //
    // ChaCha8 operates on a 4x4 matrix of uint32 values, initially set to:
    //
    //	const1 const2 const3 const4
    //	seed   seed   seed   seed
    //	seed   seed   seed   seed
    //	counter64     0      0
    //
    // We use the same constants as ChaCha20 does, a random seed,
    // and a counter. Running ChaCha8 on this input produces
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:32:54 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/output-shapes.pbtxt

            shape {
              dim {
                size: 2
              }
            }
          }
        }
      }
    }
    node {
      name: "RaggedToTensor"
      op: "RaggedTensorToTensor"
      input: ["Const0", "_Arg", "Const1", "Const2"]
      attr {
        key: "T"
        value {
          type: DT_STRING
        }
      }
      attr {
        key: "row_partition_types"
        value {
          list {
            s: ["ROW_SPLITS"]
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 21 04:07:13 UTC 2021
    - 3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/tf_identity_n.mlir

    func.func @main() -> tensor<2x3xi32> {
      %graph = tf_executor.graph {
        %0:2 = tf_executor.island wraps "tf.Const"() {value = dense<5> : tensor<2x3xi32>} : () -> tensor<2x3xi32> loc("Const0")
        %1:2 = tf_executor.island wraps "tf.Const"() {value = dense<4.2> : tensor<4x5xf32>} : () -> tensor<4x5xf32> loc("Const1")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 25 12:28:56 UTC 2022
    - 1014 bytes
    - Viewed (0)
  8. test/const4.go

    package main
    
    var b struct {
    	a [10]int
    }
    
    var m map[string][20]int
    
    var s [][30]int
    
    const (
    	n1 = len(b.a)
    	n2 = len(m[""])
    	n3 = len(s[10])
    )
    
    // Non-constants (see also const5.go).
    var (
    	n4 = len(f())
    	n5 = len(<-c)
    	n6 = cap(g())
    	n7 = cap(<-c1)
    )
    
    var calledF = false
    
    func f() *[40]int {
    	calledF = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jul 11 14:36:33 UTC 2015
    - 1.3K bytes
    - Viewed (0)
  9. src/internal/types/testdata/check/const0.go

    	1 * 1e9,
    	5 * 1e9,
    }
    
    const _ = unsafe.Sizeof(func() {
    	const _ = 0
    	_ = iota
    
    	const (
    	   zero = iota
    	   one
    	)
    	assert(one == 1)
    	assert(iota == 0)
    })
    
    // issue #52438
    const i1 = iota
    const i2 = iota
    const i3 = iota
    
    func _() {
    	assert(i1 == 0)
    	assert(i2 == 0)
    	assert(i3 == 0)
    
    	const i4 = iota
    	const i5 = iota
    	const i6 = iota
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  10. test/const2.go

    const a = 1e+500000000
    const b = a * a // ERROR "constant multiplication overflow|not representable"
    const c = b * b
    
    const MaxInt512 = (1<<256 - 1) * (1<<256 + 1)
    const _ = MaxInt512 + 1  // ERROR "constant addition overflow"
    const _ = MaxInt512 ^ -1 // ERROR "constant bitwise XOR overflow"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 01 21:49:31 UTC 2020
    - 1008 bytes
    - Viewed (0)
Back to top