Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 147 for var2 (0.05 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/freeze_variables.mlir

    // Test case: Basic freezing.
    
    module {
      // CHECK: func @main()
      func.func @main() -> tensor<0xf32> {
        %handle = "tf.VarHandleOp"() {container="", shared_name="var1", device = "/job:worker/replica:0/task:1/device:CPU:0"} : () -> tensor<!tf_type.resource<tensor<0xf32>>>
        %val = "tf.ReadVariableOp"(%handle) : (tensor<!tf_type.resource<tensor<0xf32>>>) -> tensor<0xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testshared/testdata/issue47837/main/main.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"testshared/issue47837/a"
    )
    
    func main() {
    	var vara a.ImplA
    	a.TheFuncWithArgA(&vara)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 273 bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssagen/phi.go

    					v.AddArg(w)
    					continue
    				}
    			}
    
    			if _, ok := s.varnum[var_]; ok {
    				continue
    			}
    			s.varnum[var_] = int32(len(vartypes))
    			if debugPhi {
    				fmt.Printf("var%d = %v\n", len(vartypes), var_)
    			}
    			vars = append(vars, var_)
    			vartypes = append(vartypes, v.Type)
    		}
    	}
    
    	if len(vartypes) == 0 {
    		return
    	}
    
    	// Find all definitions of the variables we need to process.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 15.2K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/attributes/DefaultImmutableAttributesFactoryTest.groovy

            def set2 = factory.of(BAR, "bar2")
    
            when:
            def concat = factory.concat(set1, set2)
    
            then:
            concat.keySet() == [FOO, BAR] as Set
            concat.getAttribute(FOO) == "foo1"
            concat.getAttribute(BAR) == "bar2"
        }
    
        def "can replace attribute with same name and different type"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 07 17:59:06 UTC 2022
    - 8.9K bytes
    - Viewed (0)
  5. src/internal/types/testdata/fixedbugs/issue60460.go

    type testRules struct{}
    
    func newTestRules() Rules[int] {
    	return testRules{}
    }
    
    func (r testRules) Hash(val int) int {
    	return val % 16
    }
    
    func (r testRules) Equivalent(val1 int, val2 int) bool {
    	return val1 == val2
    }
    
    func (r testRules) SameRules(other Rules[int]) bool {
    	_, ok := other.(testRules)
    	return ok
    }
    
    type testRules2 struct{}
    
    func newTestRules2() Rules[string] {
    	return testRules2{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 30 20:19:38 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/apis/kubeadm/argument_test.go

    			args:         []Arg{{Name: "foo", Value: "bar1"}, {Name: "foo", Value: "bar2"}},
    			name:         "foo",
    			value:        "zz",
    			nArgs:        -1,
    			expectedArgs: []Arg{{Name: "foo", Value: "zz"}, {Name: "foo", Value: "zz"}},
    		},
    		{
    			testName:     "add new argument",
    			args:         []Arg{{Name: "foo", Value: "bar1"}, {Name: "foo", Value: "bar2"}},
    			name:         "z",
    			value:        "zz",
    			nArgs:        -1,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 16 10:27:05 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/devicemanager/pod_devices_test.go

    		"foo": sets.New[string]("dev-foo1", "dev-foo2", "dev-foo3"),
    		"bar": sets.New[string]("dev-bar1", "dev-bar2", "dev-bar3"),
    		"baz": sets.New[string]("dev-baz1", "dev-baz2", "dev-baz3"),
    	}
    	resp = devs.Filter(cond)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. platforms/core-runtime/build-process-services/src/test/groovy/org/gradle/api/internal/classpath/ManifestUtilTest.groovy

        def "creates manifest classpath with relative urls"() {
            when:
            def classpathFiles = [tmpDir.file('mydir/jar1.jar'), tmpDir.file('mydir/nested/jar2.jar')]
    
            then:
            ManifestUtil.createManifestClasspath(jarFile, classpathFiles) == "jar1.jar nested/jar2.jar";
        }
    
        def "creates manifest classpath with absolute urls"() {
            when:
            def tmpDirPath = tmpDir.testDirectory.toURI().rawPath
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 06:16:07 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go

    			expectCost: map[string]int64{
    				ValsEqualThemselvesAndDataLiteral("self.val1", "self.val2", "[1, 2, 3]"): 11,
    				"1 in self.val1":                              5,
    				"self.val2[0] in self.val1":                   8,
    				"!(0 in self.val1)":                           6,
    				"self.val1 + self.val2 == [1, 2, 3, 1, 2, 3]": 6,
    				"self.val1 + [4, 5] == [1, 2, 3, 4, 5]":       4,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:20:16 UTC 2024
    - 80.2K bytes
    - Viewed (0)
  10. src/internal/reflectlite/swapper.go

    		if uint(i) >= uint(s.Len) || uint(j) >= uint(s.Len) {
    			panic("reflect: slice index out of range")
    		}
    		val1 := arrayAt(s.Data, i, size, "i < s.Len")
    		val2 := arrayAt(s.Data, j, size, "j < s.Len")
    		typedmemmove(typ, tmp, val1)
    		typedmemmove(typ, val1, val2)
    		typedmemmove(typ, val2, tmp)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:30 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top