Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 94 for SetAnnotation (1.04 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/transforms/target_annotation.cc

          if (hardware->IsOpSupported(op)) {
            SetAnnotation(op, kDevice, device, builder);
            device_is_set = true;
            break;
          }
        }
      } else {
        for (const auto* hardware : module_->GetAvailableHardwares()) {
          if (hardware == nullptr) continue;
          if (hardware->IsOpSupported(op)) {
            SetAnnotation(op, kDevice, GetHardwareName(hardware), builder);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 19:32:06 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/filename_flags.go

    		annotations := make([]string, 0, len(resource.FileExtensions))
    		for _, ext := range resource.FileExtensions {
    			annotations = append(annotations, strings.TrimLeft(ext, "."))
    		}
    		flags.SetAnnotation("filename", cobra.BashCompFilenameExt, annotations)
    	}
    	if o.Kustomize != nil {
    		flags.StringVarP(o.Kustomize, "kustomize", "k", *o.Kustomize,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 13 10:28:09 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  3. pkg/registry/flowcontrol/ensurer/flowschema_test.go

    func (b *fsBuilder) WithGeneration(value int64) *fsBuilder {
    	b.object.SetGeneration(value)
    	return b
    }
    
    func (b *fsBuilder) WithAutoUpdateAnnotation(value string) *fsBuilder {
    	setAnnotation(b.object, value)
    	return b
    }
    
    func setAnnotation(accessor metav1.Object, value string) {
    	if accessor.GetAnnotations() == nil {
    		accessor.SetAnnotations(map[string]string{})
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  4. pkg/registry/flowcontrol/ensurer/prioritylevelconfiguration_test.go

    	return b.object
    }
    
    func (b *plBuilder) WithGeneration(value int64) *plBuilder {
    	b.object.SetGeneration(value)
    	return b
    }
    
    func (b *plBuilder) WithAutoUpdateAnnotation(value string) *plBuilder {
    	setAnnotation(b.object, value)
    	return b
    }
    
    func (b *plBuilder) WithLimited(nominalConcurrencyShares int32) *plBuilder {
    	b.object.Spec.Type = flowcontrolv1.PriorityLevelEnablementLimited
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/JavaPropertyReflectionUtilTest.groovy

        }
    
        def "get annotation"() {
            expect:
            getAnnotation(Root, InheritedAnnotation).value() == "default"
            getAnnotation(Subclass, InheritedAnnotation).value() == "default"
            getAnnotation(RootInterface, InheritedAnnotation).value() == "default"
            getAnnotation(SubInterface, InheritedAnnotation).value() == "default"
    
            getAnnotation(Root, NotInheritedAnnotation).value() == "default"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/api/internal/plugins/SoftwareTypeRegistrationPluginTargetTest.groovy

            and: // returns multiple properties with annotation present
            1 * propertyMetadata.getAnnotation(SoftwareType.class) >> Optional.of(Stub(SoftwareType))
            1 * anotherPropertyMetadata.getAnnotation(SoftwareType.class) >> Optional.of(Stub(SoftwareType))
    
            and:
            def e = thrown(DefaultMultiCauseException)
            e.hasCause(InvalidUserDataException)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 03 16:02:29 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. platforms/extensibility/test-kit/src/testFixtures/groovy/org/gradle/testkit/runner/BaseGradleRunnerIntegrationTest.groovy

                    }
    
                    if (testDetails.getAnnotation(InspectsExecutedTasks) && gradleVersion < MINIMUM_VERSIONS_BY_ANNOTATIONS[InspectsExecutedTasks]) {
                        return false
                    }
    
                    if (testDetails.getAnnotation(NoDebug) && debug) {
                        return false
                    }
    
                    if (testDetails.getAnnotation(Debug) && !debug) {
                        return false
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:29:03 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  8. platforms/jvm/language-groovy/src/test/groovy/org/gradle/api/internal/tasks/compile/GroovyCompileTransformingClassLoaderTest.groovy

            def annotation = cl.getAnnotation(classAnnotation)
            annotation.value() == ['some-type'] as String[]
            annotation.classes() == [] as Class[]
        }
    
        def "loads class annotated with transformer names"() {
            expect:
            def cl = loader.loadClass(WithNamesSpecified.name)
            def annotation = cl.getAnnotation(classAnnotation)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  9. platforms/jvm/java-compiler-plugin/src/test/groovy/com/gradle/internal/compiler/java/listeners/ConstantsCollectorTest.groovy

        public static final int CONSTANT2 = A.CONSTANT;
    
        @Annotation(A.CONSTANT)
        public final int field = A.CONSTANT;
    }
    """
    
            when:
            compiler.compile(toSourceFile(clazz) + getAnnotation("int"))
    
            then:
            privateDependentToConstants["A"] == null
            accessibleDependentToConstants["A"] == null
        }
    
        def "collect all constants from annotations on class"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:06:26 UTC 2023
    - 22.4K bytes
    - Viewed (0)
  10. platforms/extensibility/plugin-use/src/test/groovy/org/gradle/plugin/software/internal/DefaultSoftwareTypeRegistryTest.groovy

            1 * propertyMetadata.getAnnotation(SoftwareType.class) >> Optional.of(softwareType)
            1 * duplicatePropertyMetadata.getPropertyType() >> SoftwareType.class
            1 * duplicatePropertyMetadata.getDeclaredType() >> TypeToken.of(TestModel.class)
            1 * duplicatePropertyMetadata.getAnnotation(SoftwareType.class) >> Optional.of(softwareType)
            4 * softwareType.name() >> "test"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 03 16:02:29 UTC 2024
    - 6.8K bytes
    - Viewed (0)
Back to top