Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,530 for Handles (0.24 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.td

       (IsConstTensor $filter),
       (IsInt32ElementType $conv),
       (HasStaticShapeConstraint $filter),
       (HasStaticShapeAtDimsConstraint<"3"> $input)],
      [], (addBenefit 10)>;
    
    // Same as ConvertTFConv2DToXLAConvOp but handles the case where input zero
    // point is dynaically calculated so not a constant.
    def ConvertTFConv2DToXLAConvOpDynamicRange : Pat<
      (TF_Conv2DOp:$conv
        (TF_SubOp:$input (TF_CastOp $input_i8, $truncate0), $input_zp),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  2. src/unique/handle.go

    	"internal/weak"
    	"runtime"
    	"sync"
    	_ "unsafe"
    )
    
    // Handle is a globally unique identity for some value of type T.
    //
    // Two handles compare equal exactly if the two values used to create the handles
    // would have also compared equal. The comparison of two handles is trivial and
    // typically much more efficient than comparing the values used to create them.
    type Handle[T comparable] struct {
    	value *T
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. platforms/software/version-control/src/test/groovy/org/gradle/vcs/git/internal/DefaultGitVersionControlSpecSpec.groovy

        GitVersionControlSpec spec = new DefaultGitVersionControlSpec()
    
        def 'handles file urls'() {
            given:
            spec.url = new URI("file:/tmp/repos/foo")
    
            expect:
            spec.repoName == 'foo'
            spec.uniqueId == 'git-repo:file:/tmp/repos/foo'
            spec.displayName == 'Git repository at file:/tmp/repos/foo'
        }
    
        def 'handles urls which do not end in .git'() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/ResultHandler.java

     * limitations under the License.
     */
    package org.gradle.tooling;
    
    /**
     * A handler for an asynchronous operation which returns an object of type T.
     *
     * @param <T> The result type.
     * @since 1.0-milestone-3
     */
    public interface ResultHandler<T> {
    
        /**
         * Handles successful completion of the operation.
         *
         * @param result the result
         * @since 1.0-milestone-3
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  5. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/vfs/impl/DefaultWatchableFileSystemDetectorTest.groovy

        def fileSystemsService = Stub(FileSystems)
        def detector = new DefaultWatchableFileSystemDetector(fileSystemsService)
    
        def "handles no file systems"() {
            fileSystemsService.fileSystems >> []
    
            expect:
            detect() == []
        }
    
        def "handles all supported"() {
            fileSystemsService.fileSystems >> [
                fs("/dev/supported", "/", "ext4"),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:38:01 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/chain_test.go

    	}{
    		{
    			name:      "all handle",
    			operation: Create,
    			expected:  true,
    		},
    		{
    			name:      "none handle",
    			operation: Connect,
    			expected:  false,
    		},
    		{
    			name:      "some handle",
    			operation: Delete,
    			expected:  true,
    		},
    	}
    	for _, test := range tests {
    		handles := chain.Handles(test.operation)
    		if handles != test.expected {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 20 15:11:00 UTC 2019
    - 5.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/util/proxy/translatinghandler.go

    )
    
    // translatingHandler wraps the delegate handler, implementing the
    // http.Handler interface. The delegate handles all requests unless
    // the request satisfies the passed "shouldTranslate" function
    // (currently only for WebSocket/V5 request), in which case the translator
    // handles the request.
    type translatingHandler struct {
    	delegate        http.Handler
    	translator      http.Handler
    	shouldTranslate func(*http.Request) bool
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  8. src/go/internal/gcimporter/gcimporter_test.go

    	testenv.MustHaveGoBuild(t)
    
    	// This package only handles gc export data.
    	if runtime.Compiler != "gc" {
    		t.Skipf("gc-built packages not available (compiler = %s)", runtime.Compiler)
    	}
    
    	compileAndImportPkg(t, "issue15920")
    }
    
    func TestIssue20046(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    
    	// This package only handles gc export data.
    	if runtime.Compiler != "gc" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/audit.go

    	return &auditHandler{Interface: i}
    }
    
    func (handler *auditHandler) Admit(ctx context.Context, a Attributes, o ObjectInterfaces) error {
    	if !handler.Interface.Handles(a.GetOperation()) {
    		return nil
    	}
    	if err := ensureAnnotationGetter(a); err != nil {
    		return err
    	}
    	var err error
    	if mutator, ok := handler.Interface.(MutationInterface); ok {
    		err = mutator.Admit(ctx, a, o)
    		handler.logAnnotations(ctx, a)
    	}
    	return err
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 29 00:03:53 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  10. src/runtime/cgo/handle_test.go

    			t.Fatalf("Duplicated Go values should have different handles, but got equal")
    		}
    
    		h1v := h1.Value()
    		h2v := h2.Value()
    		if !reflect.DeepEqual(h1v, h2v) || !reflect.DeepEqual(h1v, tt.v1) {
    			t.Fatalf("Value of a Handle got wrong, got %+v %+v, want %+v", h1v, h2v, tt.v1)
    		}
    
    		h1.Delete()
    		h2.Delete()
    	}
    
    	siz := 0
    	handles.Range(func(k, v any) bool {
    		siz++
    		return true
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.8K bytes
    - Viewed (0)
Back to top