Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,236 for const3 (0.31 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/internal/types/testdata/check/const1.go

    // license that can be found in the LICENSE file.
    
    // constant conversions
    
    package const1
    
    import "math"
    
    const(
    	mi = ^int(0)
    	mu = ^uint(0)
    	mp = ^uintptr(0)
    
    	logSizeofInt     = uint(mi>>8&1 + mi>>16&1 + mi>>32&1)
    	logSizeofUint    = uint(mu>>8&1 + mu>>16&1 + mu>>32&1)
    	logSizeofUintptr = uint(mp>>8&1 + mp>>16&1 + mp>>32&1)
    )
    
    const (
    	minInt8 = -1<<(8<<iota - 1)
    	minInt16
    	minInt32
    	minInt64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 16:11:16 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate_registration_test.cc

        %1:2 = tf_executor.island wraps "tf.Const"() {device = "", dtype = "tfdtype$DT_HALF", value = dense<[1.0, 2.0]> : tensor<2xf16>} : () -> tensor<2xf16> loc("const2")
        tf_executor.fetch %0#0, %1#0 : tensor<1x2xf16>, tensor<2xf16>
      }
      func.return %graph#0, %graph#1 : tensor<1x2xf16>, tensor<2xf16>
    })";
      std::string result;
    
      auto status = Translate(kMlirSource, result);
    
      ASSERT_TRUE(status.succeeded());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 20 23:11:32 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  6. src/runtime/internal/sys/consts.go

    const StackGuardMultiplier = 1 + goos.IsAix + isRace
    
    // DefaultPhysPageSize is the default physical page size.
    const DefaultPhysPageSize = goarch.DefaultPhysPageSize
    
    // PCQuantum is the minimal unit for a program counter (1 on x86, 4 on most other systems).
    // The various PC tables record PC deltas pre-divided by PCQuantum.
    const PCQuantum = goarch.PCQuantum
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 16:26:25 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  7. test/const7.go

    func main() {
    	if runtime.GOOS == "js" || runtime.GOOS == "wasip1" || runtime.Compiler != "gc" {
    		return
    	}
    
    	dir, err := ioutil.TempDir("", "const7_")
    	if err != nil {
    		log.Fatalf("creating temp dir: %v\n", err)
    	}
    	defer os.RemoveAll(dir)
    
    	const bitLimit = 512
    	const charLimit = 10000 // compiler-internal constant length limit
    	testProg(dir, "x1", bitLimit, "")
    	testProg(dir, "x2", bitLimit+1, "constant overflow")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:56:32 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/const.go

    			case Int:
    				var s = uint(sizeof(typ)) * 8
    				return int64(-1)<<(s-1) <= x && x <= int64(1)<<(s-1)-1
    			case Int8:
    				const s = 8
    				return -1<<(s-1) <= x && x <= 1<<(s-1)-1
    			case Int16:
    				const s = 16
    				return -1<<(s-1) <= x && x <= 1<<(s-1)-1
    			case Int32:
    				const s = 32
    				return -1<<(s-1) <= x && x <= 1<<(s-1)-1
    			case Int64, UntypedInt:
    				return true
    			case Uint, Uintptr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ir/const.go

    	}
    
    	return NewBasicLit(pos, typ, val)
    }
    
    var (
    	intOne     = constant.MakeInt64(1)
    	floatOne   = constant.ToFloat(intOne)
    	complexOne = constant.ToComplex(intOne)
    )
    
    const (
    	// Maximum size in bits for big.Ints before signaling
    	// overflow and also mantissa precision for big.Floats.
    	ConstPrec = 512
    )
    
    func BigFloat(v constant.Value) *big.Float {
    	f := new(big.Float)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 18:53:26 UTC 2023
    - 4K bytes
    - Viewed (0)
  10. src/go/types/const.go

    			case Int:
    				var s = uint(sizeof(typ)) * 8
    				return int64(-1)<<(s-1) <= x && x <= int64(1)<<(s-1)-1
    			case Int8:
    				const s = 8
    				return -1<<(s-1) <= x && x <= 1<<(s-1)-1
    			case Int16:
    				const s = 16
    				return -1<<(s-1) <= x && x <= 1<<(s-1)-1
    			case Int32:
    				const s = 32
    				return -1<<(s-1) <= x && x <= 1<<(s-1)-1
    			case Int64, UntypedInt:
    				return true
    			case Uint, Uintptr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top