Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 279 for attr_ (0.08 sec)

  1. tensorflow/cc/framework/scope.cc

        const Operation& colocate_with_op) const {
      std::unordered_set<string> current_constraints(colocation_constraints_);
      const AttrSlice attrs = colocate_with_op.node()->attrs();
      std::vector<string> node_constraints;
      if (TryGetNodeAttr(attrs, kColocationAttrName, &node_constraints)) {
        for (const string& entry : node_constraints) {
          StringPiece s(entry);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  2. src/html/template/transition.go

    			attr = attrURL
    		case contentTypeCSS:
    			attr = attrStyle
    		case contentTypeJS:
    			attr = attrScript
    		case contentTypeSrcset:
    			attr = attrSrcset
    		}
    	}
    
    	if j == len(s) {
    		state = stateAttrName
    	} else {
    		state = stateAfterName
    	}
    	return context{state: state, element: c.element, attr: attr}, j
    }
    
    // tAttrName is the context transition function for stateAttrName.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 19:54:31 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  3. plugin/pkg/auth/authorizer/node/node_authorizer.go

    		case configMapResource:
    			return r.authorizeReadNamespacedObject(nodeName, configMapVertexType, attrs)
    		case pvcResource:
    			if attrs.GetSubresource() == "status" {
    				return r.authorizeStatusUpdate(nodeName, pvcVertexType, attrs)
    			}
    			return r.authorizeGet(nodeName, pvcVertexType, attrs)
    		case pvResource:
    			return r.authorizeGet(nodeName, pvVertexType, attrs)
    		case resourceClaimResource:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 16K bytes
    - Viewed (0)
  4. platforms/jvm/plugins-java-base/src/integTest/groovy/org/gradle/api/plugins/jvm/internal/DefaultJvmPluginServicesTest.groovy

            attrs = AttributeTestUtil.attributesFactory().mutable()
            services.configureAttributes(Stub(HasConfigurableAttributes) { getAttributes() >> attrs }) {
                it.platform()
            }
    
            then:
            attrs.asMap() == [
                (CATEGORY_ATTRIBUTE): named(Category, REGULAR_PLATFORM)
            ]
    
            when:
            attrs = AttributeTestUtil.attributesFactory().mutable()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 19:52:38 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  5. src/testing/slogtest/slogtest.go

    		},
    	},
    	{
    		name:        "attrs",
    		explanation: withSource("a Handler should output attributes passed to the logging function"),
    		f: func(l *slog.Logger) {
    			l.Info("message", "k", "v")
    		},
    		checks: []check{
    			hasAttr("k", "v"),
    		},
    	},
    	{
    		name:        "empty-attr",
    		explanation: withSource("a Handler should ignore an empty Attr"),
    		f: func(l *slog.Logger) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:47 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ResolutionResultApiIntegrationTest.groovy

                        attributes.attribute(Attribute.of("attr1", Named), objects.named(Named,"value"))
                    }
                }
            """
            buildFile << """
                configurations {
                    dependencyScope("implementation")
                    resolvable("runtimeClasspath") {
                        attributes.attribute(Attribute.of("attr1", Named), objects.named(Named,"value"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 30.5K bytes
    - Viewed (0)
  7. plugin/pkg/auth/authorizer/node/node_authorizer_test.go

    	node0 := &user.DefaultInfo{Name: "system:node:node0", Groups: []string{"system:nodes"}}
    
    	tests := []struct {
    		name     string
    		attrs    authorizer.AttributesRecord
    		expect   authorizer.Decision
    		features featuregate.FeatureGate
    	}{
    		{
    			name:   "allowed configmap",
    			attrs:  authorizer.AttributesRecord{User: node0, ResourceRequest: true, Verb: "get", Resource: "configmaps", Name: "configmap0-pod0-node0", Namespace: "ns0"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  8. plugin/pkg/admission/serviceaccount/admission_test.go

    func TestIgnoresNonPodResource(t *testing.T) {
    	pod := &api.Pod{}
    	attrs := admission.NewAttributesRecord(pod, nil, api.Kind("Pod").WithVersion("version"), "myns", "myname", api.Resource("CustomResource").WithVersion("version"), "", admission.Create, &metav1.CreateOptions{}, false, nil)
    	handler := admissiontesting.WithReinvocationTesting(t, NewServiceAccount())
    	err := handler.Admit(context.TODO(), attrs, nil)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  9. src/encoding/xml/xml.go

    type Token any
    
    // A StartElement represents an XML start element.
    type StartElement struct {
    	Name Name
    	Attr []Attr
    }
    
    // Copy creates a new copy of StartElement.
    func (e StartElement) Copy() StartElement {
    	attrs := make([]Attr, len(e.Attr))
    	copy(attrs, e.Attr)
    	e.Attr = attrs
    	return e
    }
    
    // End returns the corresponding XML end element.
    func (e StartElement) End() EndElement {
    	return EndElement{e.Name}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/conversion_test.go

    		}
    		return &unstructured.Unstructured{Object: m}
    	}
    	testcases := []struct {
    		Name          string
    		Attrs         *VersionedAttributes
    		GVK           schema.GroupVersionKind
    		ExpectedAttrs *VersionedAttributes
    	}{
    		{
    			Name: "noop",
    			Attrs: &VersionedAttributes{
    				Attributes: attrs(
    					&example.Pod{ObjectMeta: metav1.ObjectMeta{Name: "newpod"}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 13.7K bytes
    - Viewed (0)
Back to top