Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 3,748 for const2 (0.1 sec)

  1. src/internal/types/testdata/check/conversions0.go

    )
    
    // numeric constant conversions are in const1.src.
    
    func string_conversions() {
    	const A = string(65)
    	assert(A == "A")
    	const E = string(-1)
    	assert(E == "\uFFFD")
    	assert(E == string(1234567890))
    
    	type myint int
    	assert(A == string(myint(65)))
    
    	type mystring string
    	const _ mystring = mystring("foo")
    
    	const _ = string(true /* ERROR "cannot convert" */ )
    	const _ = string(1.2 /* ERROR "cannot convert" */ )
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  2. src/internal/types/testdata/check/constdecl.go

    package constdecl
    
    import "math"
    import "unsafe"
    
    var v int
    
    // Const decls must be initialized by constants.
    const _ = v /* ERROR "not constant" */
    const _ = math /* ERROR "not constant" */ .Sin(0)
    const _ = int /* ERROR "not an expression" */
    
    func _() {
    	const _ = v /* ERROR "not constant" */
    	const _ = math /* ERROR "not constant" */ .Sin(0)
    	const _ = int /* ERROR "not an expression" */
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 16:11:16 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/tests/replace_cast_hacks_with_tf_xla_ops.mlir

    // CHECK-DAG: %[[CONST_8:.*]] = "tf.Const"() <{value = dense<[162, 160]> : tensor<2xi32>}> : () -> tensor<2xi32>
    // CHECK: %[[PADV2_0:.*]] = "tf.PadV2"({{.*}}, %[[CONST_4]], %[[CONST_5]]) : (tensor<1x3x4x3xi8>, tensor<4x2xi32>, tensor<i8>) -> tensor<1x4x5x3xi8>
    // CHECK: %[[XLACONVV2_0:.*]] = "tf.XlaConvV2"(%[[PADV2_0]], %[[CONST_6]], %[[CONST_0]], %[[CONST_3]], %[[CONST_1]], %[[CONST_1]], %[[CONST_2]])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 81K bytes
    - Viewed (0)
  4. test/fixedbugs/issue20185.go

    // license that can be found in the LICENSE file.
    
    // Issue 20185: type switching on untyped values (e.g. nil or consts)
    // caused an internal compiler error.
    
    package p
    
    func F() {
    	switch t := nil.(type) { // ERROR "cannot type switch on non-interface value|not an interface"
    	default:
    		_ = t
    	}
    }
    
    const x = 1
    
    func G() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 21:10:19 UTC 2022
    - 581 bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/dwarf.go

    	flagVariants := make(map[string]bool)
    
    	for _, lib := range ctxt.Library {
    
    		consts := d.ldr.Lookup(dwarf.ConstInfoPrefix+lib.Pkg, 0)
    		for _, unit := range lib.Units {
    			// We drop the constants into the first CU.
    			if consts != 0 {
    				unit.Consts = sym.LoaderSym(consts)
    				d.importInfoSymbol(consts)
    				consts = 0
    			}
    			ctxt.compUnits = append(ctxt.compUnits, unit)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  6. src/crypto/sha512/sha512block_arm64.s

    	VREV64	V14.B16, V14.B16
    	VREV64	V15.B16, V15.B16
    	VREV64	V16.B16, V16.B16
    	VREV64	V17.B16, V17.B16
    	VREV64	V18.B16, V18.B16
    	VREV64	V19.B16, V19.B16
    
    	MOVD	R3, R4
    	// load first 4 round consts in V20-V23
    	VLD1.P	64(R4), [V20.D2, V21.D2, V22.D2, V23.D2]
    
    	SHA512ROUND(V0, V1, V2, V3, V4, V20, V24, V12, V13, V19, V16, V17)
    	SHA512ROUND(V3, V0, V4, V2, V1, V21, V25, V13, V14, V12, V17, V18)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/writebarrier.go

    	}
    
    	// Number of write buffer entries we can request at once.
    	// Must match runtime/mwbbuf.go:wbMaxEntriesPerCall.
    	// It must also match the number of instances of runtime.gcWriteBarrier{X}.
    	const maxEntries = 8
    
    	var sb, sp, wbaddr, const0 *Value
    	var cgoCheckPtrWrite, cgoCheckMemmove *obj.LSym
    	var wbZero, wbMove *obj.LSym
    	var stores, after []*Value
    	var sset, sset2 *sparseSet
    	var storeNumber []int32
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 23.5K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/plan9/mkerrors.sh

    echo '// Code generated by the command above; DO NOT EDIT.'
    echo
    go tool cgo -godefs -- "$@" _const.go >_error.out
    cat _error.out | grep -vf _error.grep | grep -vf _signal.grep
    echo
    echo '// Errors'
    echo 'const ('
    cat _error.out | grep -f _error.grep | sed 's/=\(.*\)/= Errno(\1)/'
    echo ')'
    
    echo
    echo '// Signals'
    echo 'const ('
    cat _error.out | grep -f _signal.grep | sed 's/=\(.*\)/= Signal(\1)/'
    echo ')'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 00:11:50 UTC 2022
    - 5.9K bytes
    - Viewed (2)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_restore_op.cc

    // Creates a 1D string array constant for "shape_and_slices" input of
    // `RestoreV2` op. The `ConstOp` will be created at `builder`'s current
    // insertion point. It will be filled with `size` empty strings.
    TF::ConstOp CreateShapeAndSlicesConst(const int size, OpBuilder& builder) {
      const SmallVector<std::string> shape_and_slices_values(size, /*Value=*/"");
    
      const auto loc = NameLoc::get(builder.getStringAttr("shape_and_slices"));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Mar 12 06:02:20 UTC 2023
    - 9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/quantize_composite_functions.mlir

    // CHECK-DAG: %[[CONST_2:.+]] = stablehlo.constant dense<3> : tensor<1xi32>
    // CHECK-DAG: %[[CONST_3:.+]] = stablehlo.constant dense<4> : tensor<1xi32>
    // CHECK-DAG: %[[CONST_4:.+]] = stablehlo.constant dense<2> : tensor<1xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 91.6K bytes
    - Viewed (0)
Back to top