Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,865 for Cast (0.88 sec)

  1. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/IsolatableSerializerRegistry.java

                String className = decoder.readString();
                String name = decoder.readString();
                Class<? extends Enum<?>> enumClass = Cast.uncheckedCast(fromClassName(className));
                return new IsolatedEnumValueSnapshot(Enum.valueOf(Cast.uncheckedCast(enumClass), name));
            }
    
            @Override
            public Class<IsolatedEnumValueSnapshot> getIsolatableClass() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/extensibility/DefaultConvention.java

        private Object configureExtension(String name, Object[] args) {
            Action<Object> action;
            if (args[0] instanceof Closure) {
                action = ConfigureUtil.configureUsing(Cast.uncheckedCast(args[0]));
            } else {
                action = Cast.uncheckedCast(args[0]);
            }
            return extensionsStorage.configureExtension(name, action);
        }
    
        private static void logConventionDeprecation() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/external/model/ivy/RealisedIvyModuleResolveMetadata.java

                    attributes = baseConf.getAttributes();
                    capabilities = baseConf.getCapabilities();
                    dependencies = Cast.uncheckedCast(baseConf.getDependencies());
                    artifacts = Cast.uncheckedCast(baseConf.getArtifacts());
                    excludes = Cast.uncheckedCast(baseConf.getExcludes());
                }
    
                if (baseName == null || baseConf != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 19 19:13:04 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/dependencies/DefaultDependencyHandler.java

                @Override
                public Object call() {
                    configuration.execute(Cast.uncheckedCast(getDelegate()));
                    return null;
                }
    
                @Override
                public Object call(Object arguments) {
                    configuration.execute(Cast.uncheckedCast(arguments));
                    return null;
                }
            };
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 29 08:14:09 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc

          attrs_[arg_def.type_attr()] =
              TypeAttr::get(cast<MlirTensor>(inputs.front())->getElementType());
        }
      } else if (!arg_def.type_list_attr().empty()) {
        // TODO(aminim): handle ref variable.
        SmallVector<Attribute, 8> types;
        types.reserve(inputs.size());
        for (AbstractTensorHandle* input : inputs)
          types.push_back(TypeAttr::get(cast<MlirTensor>(input)->getElementType()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/internal/plugins/DefaultPluginManager.java

                instance = instantiatePlugin(pluginClass);
            }
    
            return Cast.uncheckedCast(instance);
        }
    
        private <T> T findInstance(Class<T> clazz, Iterable<?> instances) {
            for (Object instance : instances) {
                if (instance.getClass().equals(clazz)) {
                    return clazz.cast(instance);
                }
            }
    
            return null;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc

      llvm::SmallSet<int, 8> read_array;
      for (const Attribute& attr : op.getDeviceVarReadsIndices()) {
        read_array.insert(mlir::cast<IntegerAttr>(attr).getInt());
      }
      llvm::SmallSet<int, 8> update_array;
      for (const Attribute& attr : op.getDeviceVarUpdatesIndices()) {
        update_array.insert(mlir::cast<IntegerAttr>(attr).getInt());
      }
    
      for (auto& arg : op->getOpOperands()) {
        Value v = arg.get();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

            /*
             * We have an Iterator<E> and want to cast it to
             * MultiExceptionListIterator. Because we're inside an
             * AbstractIteratorTester<E>, that's implicitly a cast to
             * AbstractIteratorTester<E>.MultiExceptionListIterator. The runtime
             * won't be able to verify the AbstractIteratorTester<E> part, so it's
             * an unchecked cast. We know, however, that the only possible value for
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  9. pkg/controlplane/controller/clusterauthenticationtrust/cluster_authentication_trust_controller.go

    		FilterFunc: func(obj interface{}) bool {
    			if cast, ok := obj.(*corev1.ConfigMap); ok {
    				return cast.Namespace == configMapNamespace && cast.Name == configMapName
    			}
    			if tombstone, ok := obj.(cache.DeletedFinalStateUnknown); ok {
    				if cast, ok := tombstone.Obj.(*corev1.ConfigMap); ok {
    					return cast.Namespace == configMapNamespace && cast.Name == configMapName
    				}
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc

      auto attr = mlir::cast<DenseElementsAttr>(permutation_op.getValue());
      for (const auto& value : attr.getValues<APInt>())
        permutation.push_back(value.getSExtValue());
    
      // Check if we can fold transpose into the operation.
      if (fold_operands && fold_transpose_in_ops) {
        SmallVector<int64_t, 8> permutation;
    
        auto attr = mlir::cast<DenseElementsAttr>(permutation_op.getValue());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.3K bytes
    - Viewed (0)
Back to top