Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 92 for asType (0.14 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ValueSupplier.java

            static <T> Value<T> ofNullable(@Nullable T value) {
                if (value == null) {
                    return MISSING.asType();
                }
                return new Present<>(value);
            }
    
            static <T> Value<T> missing() {
                return MISSING.asType();
            }
    
            static <T> Value<T> of(T value) {
                if (value == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 20:31:29 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  2. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/extensions/property/PropertyUpgradeAnnotatedMethodReader.java

            GradleLazyType gradleLazyType = GradleLazyType.from(typeName);
            switch (gradleLazyType) {
                case CONFIGURABLE_FILE_COLLECTION:
                    return FILE_COLLECTION.asType();
                case DIRECTORY_PROPERTY:
                case REGULAR_FILE_PROPERTY:
                    return Type.getType(File.class);
                case LIST_PROPERTY:
                    return Type.getType(List.class);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:40 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test_base.py

                        low=-(i + 1), high=(i + 1), size=filter_shape[:-1]
                    ).astype('f4')
                    for i in range(self.out_channel_size)
                ],
                axis=-1,
            )
    
            self.bias = np.random.uniform(
                low=0, high=10, size=(self.out_channel_size)
            ).astype('f4')
    
          @def_function.function
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  4. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/extensions/property/PropertyUpgradeClassSourceGenerator.java

                default:
                    throw new UnsupportedOperationException("Generating get call for type: " + upgradedPropertyType.asType() + " is not supported");
            }
        }
    
        private static CodeBlock getSetCall(String propertyGetterName, PropertyUpgradeRequestExtra implementationExtra, GradleLazyType upgradedPropertyType) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 09:11:23 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultMapProperty.java

                Value<? extends Map<K, V>> result = DefaultMapProperty.this.calculateOwnValue(consumer);
                if (result.isMissing()) {
                    return result.asType();
                }
                Value<? extends V> resultValue = Value.ofNullable(result.getWithoutSideEffect().get(key));
                return resultValue.withSideEffect(SideEffect.fixedFrom(result));
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:33:15 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/Collectors.java

                Value<? extends T> value = provider.calculateValue(consumer);
                if (value.isMissing()) {
                    return value.asType();
                }
    
                collector.add(value.getWithoutSideEffect(), collection);
                return Value.present().withSideEffect(SideEffect.fixedFrom(value));
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:15:09 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractCollectionProperty.java

            private final Value<? extends C> value;
    
            public NoValueSupplier(Value<? extends C> value) {
                assert value.isMissing();
                this.value = value.asType();
            }
    
            @Override
            public CollectionSupplier<T, C> absentIgnoring() {
                return Cast.uncheckedCast(emptySupplier());
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/hash/Hashing.java

             * CRC32C to Checksum. This may carry some performance cost
             * (https://stackoverflow.com/a/22321671/28465), but I'd have to benchmark more carefully to
             * even detect it.
             */
            return MethodHandles.lookup()
                .findConstructor(clazz, methodType(void.class))
                .asType(methodType(Checksum.class));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 09 00:37:15 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/testdata/HEAD/apps.v1.Deployment.yaml

          volumes:
          - awsElasticBlockStore:
              fsType: fsTypeValue
              partition: 3
              readOnly: true
              volumeID: volumeIDValue
            azureDisk:
              cachingMode: cachingModeValue
              diskName: diskNameValue
              diskURI: diskURIValue
              fsType: fsTypeValue
              kind: kindValue
              readOnly: true
            azureFile:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/testdata/HEAD/apps.v1beta2.DaemonSet.yaml

          volumes:
          - awsElasticBlockStore:
              fsType: fsTypeValue
              partition: 3
              readOnly: true
              volumeID: volumeIDValue
            azureDisk:
              cachingMode: cachingModeValue
              diskName: diskNameValue
              diskURI: diskURIValue
              fsType: fsTypeValue
              kind: kindValue
              readOnly: true
            azureFile:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 35.1K bytes
    - Viewed (0)
Back to top