Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 188 for vconst2 (0.48 sec)

  1. 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)
  2. 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)
  3. tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/logical.mlir

      // CHECK-NEXT:       buffer: 2,
      // CHECK-NEXT:       name: "Const1",
      // CHECK-NEXT:       quantization: {
      // CHECK-EMPTY:
      // CHECK-NEXT:       },
      // CHECK-NEXT:       has_rank: true
      // CHECK-NEXT:     }, {
      // CHECK-NEXT:       shape: [ 4 ],
      // CHECK-NEXT:       type: BOOL,
      // CHECK-NEXT:       buffer: 3,
      // CHECK-NEXT:       name: "Const2",
      // CHECK-NEXT:       quantization: {
      // CHECK-EMPTY:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 14 16:41:28 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. src/cmd/compile/internal/ssa/rewritegeneric.go

    			v2.AuxInt = int64ToAuxInt(d - c)
    			v.AddArg2(v0, v2)
    			return true
    		}
    		break
    	}
    	// match: (AndB (Leq32 (Const32 [c]) x) (Less32 x (Const32 [d])))
    	// cond: d >= c
    	// result: (Less32U (Sub32 <x.Type> x (Const32 <x.Type> [c])) (Const32 <x.Type> [d-c]))
    	for {
    		for _i0 := 0; _i0 <= 1; _i0, v_0, v_1 = _i0+1, v_1, v_0 {
    			if v_0.Op != OpLeq32 {
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/tpu_space_to_depth_pass.mlir

        // CHECK: %[[CONST2:.*]] = "tf.Const"() <{value = dense<
        // CHECK-SAME: [8, 8, 3, 64]
        // CHECK: %[[RESHAPE1:.*]] = "tf.Reshape"(%[[TRANSPOSE1:.*]], %[[CONST2:.*]]) : (tensor<4x2x4x2x3x64xf32>, tensor<4xi64>) -> tensor<8x8x3x64xf32>
        // CHECK: %[[CONST3:.*]] = "tf.Const"() <{value = dense<
        // CHECK-SAME: [7, 7, 3, 64]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 37.4K bytes
    - Viewed (0)
  9. 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)
  10. tensorflow/compiler/jit/extract_outside_compilation_pass_test.cc

      }
    
      Status ExtractOutsideCompilationTest(
          const string &xla_cluster_attr_name,
          const string &outside_compilation_attr_name,
          const string &xla_cluster_name, const NameAttrList &func_name_attrs,
          const string &new_func_name, const string &host_graph_func_name,
          const std::map<string, int> &host_compute_core,
          FunctionLibraryDefinition *fld,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 41K bytes
    - Viewed (0)
Back to top